Skip to content

Commit 4a05289

Browse files
committed
log build and deploy values for the container image
1 parent db16f0e commit 4a05289

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.gitlab-ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,16 @@ security-scan:
7575
script:
7676
- test "$Docker_Hub_User_Parity" -a "$Docker_Hub_Pass_Parity" ||
7777
( echo "no docker credentials provided"; exit 1 )
78+
- echo "Log INFO: values for the image that will be built"
79+
- echo
80+
buildah bud
81+
--format=docker
82+
--build-arg VCS_REF="$CI_COMMIT_SHA"
83+
--build-arg BUILD_DATE="$(date -u '+%Y-%m-%dT%H:%M:%SZ')"
84+
--build-arg VERSION="$DEPLOYMENT_TAG"
85+
--build-arg PORT="$APP_PORT"
86+
--tag "$DEPLOYMENT_IMAGE_REGISTRY:$DEPLOYMENT_TAG"
87+
--file src/server/Dockerfile .
7888
- buildah bud
7989
--format=docker
8090
--build-arg VCS_REF="$CI_COMMIT_SHA"
@@ -110,6 +120,7 @@ build-production:
110120
# https://docs.gitlab.com/ee/ci/examples/authenticating-with-hashicorp-vault/#example
111121
- export VAULT_TOKEN="$(vault write -field=token auth/$VAULT_AUTH_PATH/login role=$VAULT_AUTH_ROLE jwt=$CI_JOB_JWT)"
112122
- helm dependency update helm/
123+
- echo "Log INFO: values that will be deployed"
113124
- helm secrets upgrade
114125
--install
115126
--atomic

0 commit comments

Comments
 (0)