Skip to content

Commit

Permalink
feat(ci): copy artifacts to GCP (#789)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
PoisonPhang authored Oct 11, 2023
1 parent a5d6a4b commit d81df13
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d81df13

Please sign in to comment.