|
@@ -1,6 +1,5 @@
|
|
name: Publish Docker image on Push to Master
|
|
name: Publish Docker image on Push to Master
|
|
|
|
|
|
-
|
|
|
|
on:
|
|
on:
|
|
push:
|
|
push:
|
|
branches: [ master ]
|
|
branches: [ master ]
|
|
@@ -21,10 +20,12 @@ jobs:
|
|
name: Push Docker image to Docker Hub
|
|
name: Push Docker image to Docker Hub
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
steps:
|
|
|
|
+
|
|
- name: Check out the repo
|
|
- name: Check out the repo
|
|
uses: actions/checkout@v3
|
|
uses: actions/checkout@v3
|
|
with:
|
|
with:
|
|
fetch-depth: 0
|
|
fetch-depth: 0
|
|
|
|
+
|
|
- name: Prepare
|
|
- name: Prepare
|
|
id: prep
|
|
id: prep
|
|
run: |
|
|
run: |
|
|
@@ -34,8 +35,7 @@ jobs:
|
|
TAGS="${DOCKER_IMAGE}:${VERSION},${GHCR_IMAGE}:${VERSION}"
|
|
TAGS="${DOCKER_IMAGE}:${VERSION},${GHCR_IMAGE}:${VERSION}"
|
|
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
|
|
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
|
|
echo "created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
|
|
echo "created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
|
|
- - name: Set up QEMU
|
|
|
|
- uses: docker/setup-qemu-action@v2
|
|
|
|
|
|
+
|
|
- name: Set up Docker Buildx
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
uses: docker/setup-buildx-action@v2
|
|
with:
|
|
with:
|
|
@@ -61,8 +61,10 @@ jobs:
|
|
file: ./Dockerfile
|
|
file: ./Dockerfile
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
tags: ${{ steps.prep.outputs.tags }}
|
|
tags: ${{ steps.prep.outputs.tags }}
|
|
- platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/386
|
|
|
|
|
|
+ platforms: linux/amd64
|
|
labels: |
|
|
labels: |
|
|
org.opencontainers.image.source=${{ github.event.repository.html_url }}
|
|
org.opencontainers.image.source=${{ github.event.repository.html_url }}
|
|
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
|
|
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
|
|
org.opencontainers.image.revision=${{ github.sha }}
|
|
org.opencontainers.image.revision=${{ github.sha }}
|
|
|
|
+ cache-from: type=gha
|
|
|
|
+ cache-to: type=gha,mode=min
|