Fix build config

This commit is contained in:
Tyler 2018-07-31 21:24:27 -04:00
parent c337be1ce0
commit 2fb68ce8cf
1 changed files with 37 additions and 31 deletions

View File

@ -1,19 +1,25 @@
stages:
- build
- build-docker
- build
- build-docker
build-static:
image: mhart/alpine-node:latest
stage: build
script:
- npm install -g @vue/cli
- npm install -g @vue/cli
- cd joker
- npm run build
artifacts:
paths:
- joker/dist
build-windows-amd64:
image: golang:alpine
stage: build
script:
- apk --no-cache add git
- go get -d
- GOOS=windows go build -o joker.exe
- apk --no-cache add git
- go get -d
- GOOS=windows go build -o joker.exe
artifacts:
paths:
- joker.exe
@ -22,9 +28,9 @@ build-linux-amd64:
image: golang:alpine
stage: build
script:
- apk --no-cache add git
- go get -d
- GOOS=linux go build -o joker
- apk --no-cache add git
- go get -d
- GOOS=linux go build -o joker
artifacts:
paths:
- joker
@ -33,9 +39,9 @@ build-linux-arm:
image: golang:alpine
stage: build
script:
- apk --no-cache add git
- go get -d
- GOARCH=arm GOOS=linux go build -o joker-arm
- apk --no-cache add git
- go get -d
- GOARCH=arm GOOS=linux go build -o joker-arm
artifacts:
paths:
- joker-arm
@ -44,9 +50,9 @@ build-linux-arm64:
image: golang:alpine
stage: build
script:
- apk --no-cache add git
- go get -d
- GOARCH=arm64 GOOS=linux go build -o joker-arm64
- apk --no-cache add git
- go get -d
- GOARCH=arm64 GOOS=linux go build -o joker-arm64
artifacts:
paths:
- joker-arm64
@ -55,29 +61,29 @@ build-docker-amd64:
image: docker:latest
stage: build-docker
script:
- apk --no-cache add git
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker image build -t $CI_REGISTRY_IMAGE:amd64-latest -f docker/Dockerfile .
- docker push $CI_REGISTRY_IMAGE:amd64-latest
- apk --no-cache add git
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker image build -t $CI_REGISTRY_IMAGE:amd64-latest -f docker/Dockerfile .
- docker push $CI_REGISTRY_IMAGE:amd64-latest
build-docker-arm:
image: docker:latest
stage: build-docker
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- mkdir tmp
- wget -O tmp/qemu-arm-static https://github.com/multiarch/qemu-user-static/releases/download/v2.12.0/qemu-arm-static
- chmod +x tmp/qemu-arm-static
- docker image build -t $CI_REGISTRY_IMAGE:arm-latest -f docker/Dockerfile.arm .
- docker push $CI_REGISTRY_IMAGE:arm-latest
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- mkdir tmp
- wget -O tmp/qemu-arm-static https://github.com/multiarch/qemu-user-static/releases/download/v2.12.0/qemu-arm-static
- chmod +x tmp/qemu-arm-static
- docker image build -t $CI_REGISTRY_IMAGE:arm-latest -f docker/Dockerfile.arm .
- docker push $CI_REGISTRY_IMAGE:arm-latest
build-docker-arm64:
image: docker:latest
stage: build-docker
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- mkdir tmp
- wget -O tmp/qemu-aarch64-static https://github.com/multiarch/qemu-user-static/releases/download/v2.12.0/qemu-aarch64-static
- chmod +x tmp/qemu-aarch64-static
- docker image build -t $CI_REGISTRY_IMAGE:arm64-latest -f docker/Dockerfile.arm64 .
- docker push $CI_REGISTRY_IMAGE:arm64-latest
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- mkdir tmp
- wget -O tmp/qemu-aarch64-static https://github.com/multiarch/qemu-user-static/releases/download/v2.12.0/qemu-aarch64-static
- chmod +x tmp/qemu-aarch64-static
- docker image build -t $CI_REGISTRY_IMAGE:arm64-latest -f docker/Dockerfile.arm64 .
- docker push $CI_REGISTRY_IMAGE:arm64-latest