mirror of
https://github.com/BretFisher/shpod.git
synced 2026-05-06 01:46:33 +00:00
adding GHCR and arm/v7 builds
This commit is contained in:
20
.github/workflows/docker-build-and-push.yml
vendored
20
.github/workflows/docker-build-and-push.yml
vendored
@@ -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 }}
|
||||
Reference in New Issue
Block a user