godash/.gitlab/build.gitlab-ci.yml

25 lines
734 B
YAML
Raw Normal View History

2023-06-27 14:56:31 +02:00
build_release:
rules: !reference [.rules:release, rules]
stage: build
extends: .login_registry
services:
- name: docker:$DOCKER_VERSION-dind
alias: docker
variables:
DOCKER_TLS_CERTDIR: '/certs'
CURRENT_IMAGE: '$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG'
script:
- >
docker build .
--file docker/Dockerfile
--build-arg GOLANG_VERSION=$GOLANG_VERSION
--build-arg NODE_VERSION=$NODE_VERSION
--build-arg ALPINE_VERSION=$ALPINE_VERSION
--build-arg APP_VERSION=$CI_COMMIT_TAG
--build-arg BUILD_TIME=$CI_JOB_STARTED_AT
--tag $CURRENT_IMAGE
--tag $LATEST_IMAGE
- docker inspect $CURRENT_IMAGE
- docker push $CURRENT_IMAGE
- docker push $LATEST_IMAGE