This commit is contained in:
Samir Patel 2021-10-20 14:34:24 -05:00
parent 5b0244e228
commit 554d3f1e35

View file

@ -128,10 +128,16 @@ build for darwin arm64:
# Build a Docker image with CI/CD and push to the GitLab registry.
build container fb:
image: docker:latest
image: docker:stable
stage: build
services:
- docker:dind
variables:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker info
script:
- tag=$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
- docker build --build-arg GO_VERSION=$GOVERSION -t $tag .