Skip to content

Commit

Permalink
Github actions: try with gcloud auth configure-docker
Browse files Browse the repository at this point in the history
  • Loading branch information
fdabrandao authored Sep 14, 2024
1 parent 913f3cf commit 7ad5e1a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/deploy-streamlit-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ jobs:
# version: 'latest'
# project_id: ${{ secrets.GCP_PROJECT_ID }}

- name: Docker Auth
id: docker-auth
uses: 'docker/login-action@v1'
with:
username: 'oauth2accesstoken'
password: '${{ steps.gcp-auth.outputs.access_token }}'
registry: '${{ secrets.GCP_REGION }}-docker.pkg.dev'
#- name: Docker Auth
# id: docker-auth
# uses: 'docker/login-action@v1'
# with:
# username: 'oauth2accesstoken'
# password: '${{ steps.gcp-auth.outputs.access_token }}'
# registry: '${{ secrets.GCP_REGION }}-docker.pkg.dev'

# Step 4: Configure Docker to use Artifact Registry
#- name: Authenticate Docker to Artifact Registry
# run: |
# gcloud auth configure-docker ${{ secrets.GCP_REGION }}-docker.pkg.dev
- name: Authenticate Docker to Artifact Registry
run: |
gcloud auth configure-docker ${{ secrets.GCP_REGION }}-docker.pkg.dev
# Step 5: Build Docker Image for Streamlit app
- name: Build Docker image
Expand Down

0 comments on commit 7ad5e1a

Please sign in to comment.