X Tutup
image: docker stages: - validate - build services: - docker:dind variables: USE_CONTAINER: "true" DOCKER_HOST: tcp://docker:2375 DOCKER_DRIVER: overlay before_script: - apk add -U make bash .build_base: &build_base stage: build before_script: - apk add -U make bash - export TARGET_OS=$(echo $CI_JOB_NAME | cut -d ' ' -f 1) - export TARGET_ARCH=$(echo $CI_JOB_NAME | cut -d ' ' -f 2) after_script: - "[[ \"$(find bin -type f -name docker-machine*)\" != \"\" ]]" artifacts: paths: - bin/ expire_in: 1 week tags: - docker - privileged .build_validate: &build_validate <<: *build_base stage: validate script: make build validate .build_x: &build_x <<: *build_base script: make build-x darwin amd64: *build_x linux amd64: *build_validate openbsd amd64: *build_x windows amd64: *build_x linux arm: *build_x linux arm64: *build_x
X Tutup