Skip to content

Commit

Permalink
Update google-cloudrun-docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
satrio142 committed Dec 2, 2023
1 parent 4347d0c commit ada3499
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/google-cloudrun-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,24 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4


- name: Debug Docker Auth
run: |
echo "Username: $DOCKER_USERNAME"
echo "Password: $DOCKER_PASSWORD"
echo "Registry: $DOCKER_REGISTRY"
env:
DOCKER_USERNAME: 'oauth2accesstoken'
DOCKER_PASSWORD: '${{ steps.auth.outputs.access_token }}'
DOCKER_REGISTRY: '${{ env.GAR_LOCATION }}-docker.pkg.dev'

- name: Google Auth
id: auth
uses: 'google-github-actions/auth@v1'
with:
credentials_json: '${{ secrets.SATRIO }}'


# BEGIN - Docker auth and build (NOTE: If you already have a container image, these Docker steps can be omitted)

# Authenticate Docker to Google Cloud Artifact Registry
Expand Down

0 comments on commit ada3499

Please sign in to comment.