Skip to content

removing full requirements from setup.py and limiting to tests/docker… #5

removing full requirements from setup.py and limiting to tests/docker…

removing full requirements from setup.py and limiting to tests/docker… #5

name: Push to GCR/GHCR GitHub Action
on: push
jobs:
build-and-push-to-gcr-service-account:
name: Build & push to GCR/GHCR
if: startsWith(github.ref, 'refs/tags/') # only publish to registry on tag pushes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/auth@v2
with:
credentials_json: '${{ secrets.B64_GCLOUD_SERVICE_ACCOUNT_JSON }}'
- name: Building and pushing the image
run: |
docker login ghcr.io -u ${github_username} -p ${github_token}
./docker/vm_boot_images/build.sh -P
./docker/vm_boot_images/build.sh -c -P
env:
github_token: ${{ secrets.GHCR_TOKEN }}
github_username: ${{ secrets.GHCR_USERNAME }}