1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/mirrors-Zinc

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
buildspec.yml 1.8 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Hengfei Yang Отправлено 21.06.2024 10:22 a8a490a
version: 0.2
phases:
install:
runtime-versions:
golang: 1.21
nodejs: 20
pre_build:
commands:
- echo Logging in to Amazon ECR...
- aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/zinclabs
- apt-get update && apt-get install bc -y
# Install AWS CLI
# - curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
# - unzip awscliv2.zip
# - ./aws/install
# - rm awscliv2.zip
# - rm -rf aws
# install buildx
- wget -nv https://github.com/docker/buildx/releases/download/v0.12.1/buildx-v0.12.1.linux-amd64
- chmod +x buildx-v0.12.1.linux-amd64
- mkdir -p ~/.docker/cli-plugins
- mv buildx-v0.12.1.linux-amd64 ~/.docker/cli-plugins/docker-buildx
# - Install Go
# - cd /root/.goenv/plugins/go-build/../.. && git pull && cd -
# - goenv install 1.18.3
# - goenv rehash
# - goenv global 1.18.3
- export DOCKER_CLI_EXPERIMENTAL=enabled
# - export DOCKER_BUILDKIT=1
# update npm
# - npm install --location=global npm@latest
build:
commands:
# - echo install snap
# - apt update
# - apt install snapd -y
# - snap install snapcraft --classic
# - docker run -v "$PWD":/build -w /build snapcore/snapcraft:stable snapcraft
# Build vujes UI
- echo "Building front end..."
- cd web
- npm install
- npm run build
- cd ..
- ./coverage.sh
# Build binary and container images using goreleaser
- echo Build started on `date`
- GIT_TAG="$(git describe --tags --abbrev=0)"
- curl -sL https://git.io/goreleaser | bash
# post_build:
# commands:
# - echo Build completed on `date`

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/mirrors-Zinc.git
git@api.gitlife.ru:oschina-mirror/mirrors-Zinc.git
oschina-mirror
mirrors-Zinc
mirrors-Zinc
main