Skip to content
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/auth@v2.1.1'
# with:
# credentials_json: ${{ secrets.GCP_SERVICE_ACCOUNT_JSON_KEY }}
#
# - id: 'setup-buildx'
# name: 'Set up Docker Buildx'
# uses: 'docker/setup-buildx-action@v3.0.0'
#
# - id: 'docker-login'
# name: 'Docker Login'
# uses: 'docker/login-action@v3.0.0'
# with:
# registry: us-central1-docker.pkg.dev
# username: _json_key
# password: ${{ secrets.GCP_SERVICE_ACCOUNT_JSON_KEY }}
runs-on: [intel-cpu, 8-cpu, ci]
container:
image: us-central1-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/deep-learning-images/huggingface-pytorch-transformers-4.37.2-py310

Check failure on line 34 in .github/workflows/test-pull-image.yml

View workflow run for this annotation

GitHub Actions / Build and Push to GCP Artifact Registry Resuable Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/test-pull-image.yml (Line: 34, Col: 14): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.GCP_PROJECT_ID
options: --shm-size "16gb"
credentials:
username: _json_key_base64
password: ${{ secrets.GCLOUD_SERVICE_ACCOUNT_JSON }}
steps:
- name: Echo
shell: bash
run: |
ls -l
ls -la