Browse Source

Remove unused workflows (#349)

pull/350/head
Vince Grassia 10 months ago committed by GitHub
parent
commit
5fcfb2a206
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 48
      .github/workflows/DCT-test.yml
  2. 54
      .github/workflows/release-web-latest.yml

48
.github/workflows/DCT-test.yml

@ -1,48 +0,0 @@ @@ -1,48 +0,0 @@
name: Test DCT
on:
workflow_dispatch: {}
env:
_AZ_REGISTRY: bitwardenprod.azurecr.io
jobs:
test-dct:
name: Pull and push images to DH to test DCT
runs-on: ubuntu-22.04
env:
_REPO: mssqlmigratorutility
_IMAGE_TAG: latest
steps:
- name: Login to Azure - Prod Subscription
uses: Azure/login@e15b166166a8746d1a47596803bd8c1b595455cf # v1.6.0
with:
creds: ${{ secrets.AZURE_PROD_KV_CREDENTIALS }}
- name: Login to Azure ACR
run: az acr login -n ${_AZ_REGISTRY%.azurecr.io}
########## DockerHub ##########
- name: Setup DCT
id: setup-dct
uses: bitwarden/gh-actions/setup-docker-trust@main
with:
azure-creds: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
azure-keyvault-name: "bitwarden-ci"
- name: Pull and tag image from ACR
run: |
docker pull $_AZ_REGISTRY/$_REPO:$_IMAGE_TAG
docker tag $_AZ_REGISTRY/$_REPO:$_IMAGE_TAG bitwarden/$_REPO:$_IMAGE_TAG
- name: Push image to Docker Hub
env:
DOCKER_CONTENT_TRUST: 1
DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE: ${{ steps.setup-dct.outputs.dct-delegate-repo-passphrase }}
run: docker push bitwarden/$_REPO:$_IMAGE_TAG
- name: Log out of Docker and disable Docker Notary
run: |
docker logout
echo "DOCKER_CONTENT_TRUST=0" >> $GITHUB_ENV

54
.github/workflows/release-web-latest.yml

@ -1,54 +0,0 @@ @@ -1,54 +0,0 @@
# Manual workflow to tag a web version with :latest
name: Update Web Latest Tag
on:
workflow_dispatch:
jobs:
get-version:
name: Get Web version
runs-on: ubuntu-22.04
outputs:
_RELEASE_VERSION: ${{ steps.get-version.outputs.version }}
steps:
- name: Checkout repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Get version
id: get-version
run: |
VERSION=$(jq -r '.versions.webVersion' < version.json)
echo "version=$VERSION" >> $GITHUB_OUTPUT
tag-web-latest:
name: Tag Web version as latest
runs-on: ubuntu-22.04
needs:
- get-version
env:
_RELEASE_VERSION: ${{ needs.get-version.outputs._RELEASE_VERSION }}
steps:
########## DockerHub ##########
- name: Setup DCT
id: setup-dct
uses: bitwarden/gh-actions/setup-docker-trust@main
with:
azure-creds: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
azure-keyvault-name: "bitwarden-ci"
- name: Pull versioned image
run: docker pull bitwarden/web:$_RELEASE_VERSION
- name: Tag latest
run: docker tag bitwarden/web:$_RELEASE_VERSION bitwarden/web:latest
- name: Push latest image
env:
DOCKER_CONTENT_TRUST: 1
DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE: ${{ steps.setup-dct.outputs.dct-delegate-repo-passphrase }}
run: docker push bitwarden/web:latest
- name: Log out of Docker and disable Docker Notary
run: |
docker logout
echo "DOCKER_CONTENT_TRUST=0" >> $GITHUB_ENV
Loading…
Cancel
Save