adding GHCR and arm/v7 builds

This commit is contained in:
Bret Fisher
2021-04-26 14:20:15 -05:00
parent d0dd759983
commit f715e360e4

View File

@@ -21,7 +21,7 @@ jobs:
# list of Docker images to use as base name for tags
images: |
bretfisher/shpod
# ghcr.io/bretfisher/shpod
ghcr.io/bretfisher/shpod
# add git short SHA as Docker tag
tag-sha: true
-
@@ -38,18 +38,18 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
# name: Login to GHCR
# if: github.event_name != 'pull_request'
# uses: docker/login-action@v1
# with:
# registry: ghcr.io
# username: ${{ secrets.GHCR_USERNAME }}
# password: ${{ secrets.GHCR_TOKEN }}
# -
name: Login to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker_meta.outputs.tags }},bretfisher/shpod:latest
labels: ${{ steps.docker_meta.outputs.labels }}