From 5fcfb2a206839d1bcc34ade885c18b63043ff9b2 Mon Sep 17 00:00:00 2001 From: Vince Grassia <593223+vgrassia@users.noreply.github.com> Date: Mon, 24 Feb 2025 18:12:00 -0500 Subject: [PATCH] Remove unused workflows (#349) --- .github/workflows/DCT-test.yml | 48 --------------------- .github/workflows/release-web-latest.yml | 54 ------------------------ 2 files changed, 102 deletions(-) delete mode 100644 .github/workflows/DCT-test.yml delete mode 100644 .github/workflows/release-web-latest.yml diff --git a/.github/workflows/DCT-test.yml b/.github/workflows/DCT-test.yml deleted file mode 100644 index d59f9a9..0000000 --- a/.github/workflows/DCT-test.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/release-web-latest.yml b/.github/workflows/release-web-latest.yml deleted file mode 100644 index 8c81fa9..0000000 --- a/.github/workflows/release-web-latest.yml +++ /dev/null @@ -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