Skip to content

this is a test

this is a test #6

Workflow file for this run

name: Deploy
on:
push:
env:
PROJECT_ID: '231388685322'
GAR_LOCATION: 'us-east1'
REPOSITORY: 'zah'
jobs:
job_id:
runs-on: 'ubuntu-latest'
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: 'actions/checkout@v4'
- id: auth
uses: 'google-github-actions/auth@v2'
with:
project_id: 'zah-website'
workload_identity_provider: 'projects/231388685322/locations/global/workloadIdentityPools/zah-github/providers/zah-github-provider'
service_account: 'zah-registry-user@zah-website.iam.gserviceaccount.com'
- name: 'set up cloud sdk'
uses: 'google-github-actions/setup-gcloud@v2'
- name: 'login to artifact registry'
id: docker-auth
uses: 'docker/login-action@v3'
with:
username: 'oauth2accesstoken'
password: 'this is a test'
registry: 'us-east1-docker.pkg.dev'
- name: 'Build and push Container'
run: |-
docker build -t "${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.REPOSITORY }}/zah:test" ./
docker push "${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.REPOSITORY }}/zah:test"