Add GHCR support

This commit is contained in:
Bastian Meissner 2022-03-05 19:13:21 +01:00
parent 6d059ce3b8
commit e75e147be1

View file

@ -89,9 +89,18 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push - name: Build and push
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
push: true push: true
platforms: linux/amd64,linux/arm64/v8,linux/arm/v7 platforms: linux/amd64,linux/arm64/v8,linux/arm/v7
tags: phntxx/dashboard:latest tags: |
phntxx/dashboard:latest
ghcr.io/phntxx/dashboard:latest