-
Notifications
You must be signed in to change notification settings - Fork 19
41 lines (37 loc) · 1.17 KB
/
test-pull-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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: 'setup-buildx'
# name: 'Set up Docker Buildx'
# uses: 'docker/[email protected]'
#
# - 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 }}
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
options: --shm-size "16gb"
steps:
- name: Echo
shell: bash
run: |
ls -l
ls -la