-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
comment Push Docker images to Google Container Registry action
- Loading branch information
Showing
1 changed file
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,20 +75,20 @@ jobs: | |
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | ||
useDaemon: false # attempt to stop hanging on cleanup | ||
|
||
- id: gcloud-auth | ||
name: Authenticate to Google Cloud π | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
token_format: access_token | ||
service_account: "[email protected]" | ||
workload_identity_provider: "projects/1025009031284/locations/global/workloadIdentityPools/hasura-ddn/providers/github" | ||
|
||
- name: Login to Google Container Registry π¦ | ||
uses: "docker/login-action@v3" | ||
with: | ||
registry: "us-docker.pkg.dev" | ||
username: "oauth2accesstoken" | ||
password: "${{ steps.gcloud-auth.outputs.access_token }}" | ||
# - id: gcloud-auth | ||
# name: Authenticate to Google Cloud π | ||
# uses: google-github-actions/auth@v2 | ||
# with: | ||
# token_format: access_token | ||
# service_account: "[email protected]" | ||
# workload_identity_provider: "projects/1025009031284/locations/global/workloadIdentityPools/hasura-ddn/providers/github" | ||
|
||
# - name: Login to Google Container Registry π¦ | ||
# uses: "docker/login-action@v3" | ||
# with: | ||
# registry: "us-docker.pkg.dev" | ||
# username: "oauth2accesstoken" | ||
# password: "${{ steps.gcloud-auth.outputs.access_token }}" | ||
|
||
- name: Login to GitHub Container Registry π¦ | ||
uses: docker/login-action@v3 | ||
|
@@ -97,8 +97,8 @@ jobs: | |
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Push Docker images to Google Container Registry π’ | ||
run: nix run .#publish-docker-image '${{ github.ref }}' 'us-docker.pkg.dev/hasura-ddn/ddn/ndc-bigquery' | ||
# - name: Push Docker images to Google Container Registry π’ | ||
# run: nix run .#publish-docker-image '${{ github.ref }}' 'us-docker.pkg.dev/hasura-ddn/ddn/ndc-bigquery' | ||
|
||
- name: Push Docker images to GitHub Packages π’ | ||
run: nix run .#publish-docker-image '${{ github.ref }}' 'ghcr.io/hasura/ndc-bigquery' | ||
|