From d81df1379a9b8011d4f086f03173ff91a18705c9 Mon Sep 17 00:00:00 2001 From: Connor Davis <17688291+PoisonPhang@users.noreply.github.com> Date: Wed, 11 Oct 2023 08:19:38 -0500 Subject: [PATCH] feat(ci): copy artifacts to GCP (#789) * feat(ci): copy artifacts to GCP * test: release to GCP * fix(ci): specify GPC host name * fix(ci): run release only on tag * feat(ci): only release uniond to GCP * test: release to GCP * fix(ci): run release only on tag --- .github/workflows/release.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 606c072307..81be835bb8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -180,6 +180,23 @@ jobs: skopeo copy --multi-arch=all --insecure-policy --src-tls-verify=false "docker://localhost:5000/unionlabs/${{ matrix.package }}:${{ github.ref_name }}" "docker://ghcr.io/unionlabs/${{ matrix.package }}:${{ github.ref_name }}" echo "Copied ${{ matrix.package }}:${{ github.ref_name }} multi-arch to GHCR" + - name: Authenticate to GCP + uses: 'google-github-actions/auth@v1' + with: + credentials_json: ${{ secrets.GCP_AR_CRED_JSON }} + - name: Set up GCP SDK + uses: google-github-actions/setup-gcloud@v1 + with: + version: '>= 363.0.0' + - name: Configure docker to authinticate with GCP + run: | + gcloud auth configure-docker europe-docker.pkg.dev + - name: Copy Manifest to GCP + run: | + if [[ "uniond" == ${{ matrix.package }} ]]; then + skopeo copy --multi-arch=all --insecure-policy --src-tls-verify=false "docker://localhost:5000/unionlabs/${{ matrix.package }}:${{ github.ref_name }}" "docker://europe-docker.pkg.dev/model-envelope-401614/union-testnet/${{ matrix.package }}:${{ github.ref_name }}" + fi + release: runs-on: ubuntu-latest