|
|
|
|
@ -77,6 +77,7 @@ jobs:
@@ -77,6 +77,7 @@ jobs:
|
|
|
|
|
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 |
|
|
|
|
|
|
|
|
|
- name: Setup DCT |
|
|
|
|
id: setup-dct |
|
|
|
|
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rc' || github.ref == 'refs/heads/hotfix-rc' |
|
|
|
|
uses: bitwarden/gh-actions/setup-docker-trust@a8c384a05a974c05c48374c818b004be221d43ff |
|
|
|
|
with: |
|
|
|
|
@ -101,6 +102,9 @@ jobs:
@@ -101,6 +102,9 @@ jobs:
|
|
|
|
|
|
|
|
|
|
- name: Tag and Push RC to Docker Hub |
|
|
|
|
if: (github.ref == 'refs/heads/rc') |
|
|
|
|
env: |
|
|
|
|
DOCKER_CONTENT_TRUST: 1 |
|
|
|
|
DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE: ${{ steps.setup-dct.outputs.dct-delegate-repo-passphrase }} |
|
|
|
|
run: | |
|
|
|
|
docker tag ${{ env._SERVICE_NAME }} \ |
|
|
|
|
bitwarden/${{ env._SERVICE_NAME }}:rc |
|
|
|
|
@ -108,6 +112,9 @@ jobs:
@@ -108,6 +112,9 @@ jobs:
|
|
|
|
|
|
|
|
|
|
- name: Tag and Push Hotfix to Docker Hub |
|
|
|
|
if: (github.ref == 'refs/heads/hotfix-rc') |
|
|
|
|
env: |
|
|
|
|
DOCKER_CONTENT_TRUST: 1 |
|
|
|
|
DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE: ${{ steps.setup-dct.outputs.dct-delegate-repo-passphrase }} |
|
|
|
|
run: | |
|
|
|
|
docker tag ${{ env._SERVICE_NAME }} \ |
|
|
|
|
bitwarden/${{ env._SERVICE_NAME }}:hotfix |
|
|
|
|
@ -115,6 +122,9 @@ jobs:
@@ -115,6 +122,9 @@ jobs:
|
|
|
|
|
|
|
|
|
|
- name: Tag and Push Dev to Docker Hub |
|
|
|
|
if: (github.ref == 'refs/heads/master') |
|
|
|
|
env: |
|
|
|
|
DOCKER_CONTENT_TRUST: 1 |
|
|
|
|
DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE: ${{ steps.setup-dct.outputs.dct-delegate-repo-passphrase }} |
|
|
|
|
run: | |
|
|
|
|
docker tag ${{ env._SERVICE_NAME }} \ |
|
|
|
|
bitwarden/${{ env._SERVICE_NAME }}:dev |
|
|
|
|
|