Skip to content

Commit

Permalink
testing 14
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaytonSmith committed Jun 12, 2024
1 parent 5451790 commit c2afb47
Showing 1 changed file with 30 additions and 15 deletions.
45 changes: 30 additions & 15 deletions .github/workflows/docker_push_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,44 @@ jobs:
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Authenticate with service account
uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}
- name: Decode and write GCP key to file
run: echo "${{ secrets.GCP_SA_KEY_BASE64 }}" | base64 --decode > /tmp/gcp_sa_key.json

- name: Authenticate to Google Cloud
run: |
gcloud auth activate-service-account --key-file=/tmp/gcp_sa_key.json
gcloud auth configure-docker us-docker.pkg.dev
# - name: Login
# uses: google-github-actions/setup-gcloud@v1
# - name: Checkout repository
# uses: actions/checkout@v4

# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1

- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v1
with:
project_id: ${{ vars.GCP_PROJECT_ID }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
# - name: Authenticate with service account
# uses: google-github-actions/auth@v1
# with:
# credentials_json: ${{ secrets.GCP_SA_KEY }}


# # - name: Login
# # uses: google-github-actions/setup-gcloud@v1

# - name: Set up Cloud SDK
# uses: google-github-actions/setup-gcloud@v1
# with:
# project_id: ${{ vars.GCP_PROJECT_ID }}
# service_account_key: ${{ secrets.GCP_SA_KEY }}

- name: Configure Docker to use Google Cloud credentials
run: gcloud auth configure-docker us-docker.pkg.dev
# - name: Configure Docker to use Google Cloud credentials
# run: gcloud auth configure-docker us-docker.pkg.dev
# export_default_credentials: true

# - name: Configure Docker
Expand Down

0 comments on commit c2afb47

Please sign in to comment.