github actions cannot use both uses and run, removing the uses #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 abaumann -p ${github_token} | ||
./docker/vm_boot_images/build.sh -P | ||
./docker/vm_boot_images/build.sh -c -P | ||
with: | ||
github_token: ${{ secrets.GHCR_TOKEN }} |