2023-08-30 08:58:57 +02:00
|
|
|
build:
|
2023-06-27 14:56:31 +02:00
|
|
|
rules: !reference [.rules:release, rules]
|
|
|
|
stage: build
|
|
|
|
extends: .login_registry
|
|
|
|
services:
|
|
|
|
- name: docker:$DOCKER_VERSION-dind
|
|
|
|
alias: docker
|
|
|
|
variables:
|
2023-08-02 20:39:59 +02:00
|
|
|
DOCKER_TLS_CERTDIR: ''
|
2023-06-27 14:56:31 +02:00
|
|
|
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
|