1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-16 02:28:13 -05:00

Remove hash from image tag (#1772)

This commit is contained in:
Vince Grassia 2021-12-16 11:47:01 -05:00 committed by GitHub
parent 9605f89e6b
commit 44b993ed38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -355,31 +355,28 @@ jobs:
if: github.ref == 'refs/heads/rc' if: github.ref == 'refs/heads/rc'
env: env:
REGISTRY: bitwardenqa.azurecr.io REGISTRY: bitwardenqa.azurecr.io
IMAGE_TAG: ${{ github.sha }}
run: | run: |
docker tag ${{ steps.setup.outputs.service_name }} \ docker tag ${{ steps.setup.outputs.service_name }} \
$REGISTRY/${{ steps.setup.outputs.service_name }}:rc-${IMAGE_TAG:(-8)} $REGISTRY/${{ steps.setup.outputs.service_name }}:rc
docker push $REGISTRY/${{ steps.setup.outputs.service_name }}:rc-${IMAGE_TAG:(-8)} docker push $REGISTRY/${{ steps.setup.outputs.service_name }}:rc
- name: Tag and Push Hotfix to Azure ACR QA registry - name: Tag and Push Hotfix to Azure ACR QA registry
if: github.ref == 'refs/heads/hotfix' if: github.ref == 'refs/heads/hotfix'
env: env:
REGISTRY: bitwardenqa.azurecr.io REGISTRY: bitwardenqa.azurecr.io
IMAGE_TAG: ${{ github.sha }}
run: | run: |
docker tag ${{ steps.setup.outputs.service_name }} \ docker tag ${{ steps.setup.outputs.service_name }} \
$REGISTRY/${{ steps.setup.outputs.service_name }}:hotfix-${IMAGE_TAG:(-8)} $REGISTRY/${{ steps.setup.outputs.service_name }}:hotfix
docker push $REGISTRY/${{ steps.setup.outputs.service_name }}:hotfix-${IMAGE_TAG:(-8)} docker push $REGISTRY/${{ steps.setup.outputs.service_name }}:hotfix
- name: Tag and Push Dev to Azure ACR QA registry - name: Tag and Push Dev to Azure ACR QA registry
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'
env: env:
REGISTRY: bitwardenqa.azurecr.io REGISTRY: bitwardenqa.azurecr.io
IMAGE_TAG: ${{ github.sha }}
run: | run: |
docker tag ${{ steps.setup.outputs.service_name }} \ docker tag ${{ steps.setup.outputs.service_name }} \
$REGISTRY/${{ steps.setup.outputs.service_name }}:dev-${IMAGE_TAG:(-8)} $REGISTRY/${{ steps.setup.outputs.service_name }}:dev
docker push $REGISTRY/${{ steps.setup.outputs.service_name }}:dev-${IMAGE_TAG:(-8)} docker push $REGISTRY/${{ steps.setup.outputs.service_name }}:dev
upload: upload:
@ -445,6 +442,7 @@ jobs:
path: ./swagger.json path: ./swagger.json
if-no-files-found: error if-no-files-found: error
check-failures: check-failures:
name: Check for failures name: Check for failures
if: always() if: always()