Skip to content

Commit

Permalink
run pull image
Browse files Browse the repository at this point in the history
  • Loading branch information
ydshieh committed Feb 22, 2024
1 parent 882a1dd commit 3107aeb
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test-pull-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build and Push to GCP Artifact Registry Resuable Workflow

on:
push:
branches:
- pull_image


jobs:
pull-image-job:
name: Build and Push Docker Image to GCP Artifact Registry
runs-on: [intel-cpu, 8-cpu, ci]
steps:
- id: 'auth'
name: 'Authenticate with Google Cloud'
uses: 'google-github-actions/[email protected]'
with:
credentials_json: ${{ secrets.GCP_SERVICE_ACCOUNT_JSON_KEY }}

- id: 'docker-login'
name: 'Docker Login'
uses: 'docker/[email protected]'
with:
registry: us-central1-docker.pkg.dev
username: _json_key
password: ${{ secrets.GCP_SERVICE_ACCOUNT_JSON_KEY }}

0 comments on commit 3107aeb

Please sign in to comment.