chore: push containers to docker.io

We should now mirror gcr.io with docker.io
This commit is contained in:
jo 2023-02-26 15:34:14 +01:00 committed by Kyle Robbertze
parent 0dd034b7b6
commit fdd77ba8de
1 changed files with 9 additions and 0 deletions

View File

@ -28,6 +28,7 @@ jobs:
bake-target: ${{ matrix.target }}
images: |
ghcr.io/libretime/libretime-${{ matrix.target }}
docker.io/libretime/libretime-${{ matrix.target }}
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
@ -57,6 +58,14 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login docker.io
if: github.event_name == 'push'
uses: docker/login-action@v2
with:
registry: docker.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Download all metadata bake files
uses: actions/download-artifact@v3