add GAR docker push for google cloud stuff

This commit is contained in:
41666 2020-12-06 05:41:18 -05:00
parent e028b64ff8
commit 7ad719895d
5 changed files with 144 additions and 3 deletions

View file

@ -75,8 +75,9 @@ jobs:
id: docker_meta
uses: crazy-max/ghaction-docker-meta@v1
with:
images: ghcr.io/roleypoly/${{matrix.dockerfile}}
tag-sha: true
images: |
ghcr.io/roleypoly/${{matrix.dockerfile}}
us-docker.pkg.dev/roleypoly-${{matrix.dockerfile}}
- name: Set up Docker Buildx
id: buildx
@ -84,13 +85,20 @@ jobs:
with:
install: true
- name: Login to GitHub Packages Docker Registry
- name: Login to GHCR
uses: docker/login-action@v1
with:
registry: ghcr.io
username: roleypoly
password: ${{ secrets.GHCR_PAT }}
- name: Login to GAR
uses: docker/login-action@v1
with:
registry: us-docker.pkg.dev
username: _json_key
password: ${{ secrets.GAR_JSON_KEY }}
- name: Build and push
uses: docker/build-push-action@v2
with: