Skip to content

Commit

Permalink
Update .gitlab-ci.yml to include branch name in the version
Browse files Browse the repository at this point in the history
  • Loading branch information
dobrac authored Nov 5, 2024
1 parent f3a4a0c commit e308c66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ build:
--cache=true \
--context $CI_PROJECT_DIR \
--dockerfile $CI_PROJECT_DIR/Dockerfile \
--destination $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA \
--destination $CI_REGISTRY_IMAGE:$CI_COMMIT_BRANCH-$CI_COMMIT_SHORT_SHA \
--build-arg NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
deploy:
Expand All @@ -31,5 +31,5 @@ deploy:
when: never
- when: manual
script:
- kubectl --token=${KUBE_TOKEN} --server=${KUBE_SERVER} set image deployment/qplay-frontpage qplay-frontpage=$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --namespace=$KUBE_NAMESPACE --record --insecure-skip-tls-verify=true
- kubectl --token=${KUBE_TOKEN} --server=${KUBE_SERVER} set image deployment/qplay-frontpage qplay-frontpage=$CI_REGISTRY_IMAGE:$CI_COMMIT_BRANCH-$CI_COMMIT_SHORT_SHA --namespace=$KUBE_NAMESPACE --record --insecure-skip-tls-verify=true
- kubectl --token=${KUBE_TOKEN} --server=${KUBE_SERVER} --namespace=$KUBE_NAMESPACE --insecure-skip-tls-verify=true rollout status deployment qplay-frontpage

0 comments on commit e308c66

Please sign in to comment.