Update GHA Docker builds

This commit is contained in:
suika 2022-10-30 20:57:26 +01:00
parent c2e1fa78f7
commit 6987094e4d
2 changed files with 24 additions and 28 deletions

View File

@ -14,7 +14,7 @@ jobs:
- -
name: Docker meta name: Docker meta
id: docker_meta id: docker_meta
uses: crazy-max/ghaction-docker-meta@v2 uses: docker/metadata-action@v3
with: with:
images: | images: |
ghcr.io/hydrusnetwork/hydrus ghcr.io/hydrusnetwork/hydrus
@ -26,23 +26,23 @@ jobs:
org.opencontainers.image.vendor=hydrusnetwork org.opencontainers.image.vendor=hydrusnetwork
- -
name: Set up QEMU name: Set up QEMU
uses: docker/setup-qemu-action@v1 uses: docker/setup-qemu-action@v2
- -
name: Set up Docker Buildx name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v2
with: with:
buildkitd-flags: "--debug" buildkitd-flags: "--debug"
- -
name: Login to GHCR name: Login to GHCR
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
uses: docker/login-action@v1 uses: docker/login-action@v2
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }} username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }} password: ${{ secrets.GHCR_TOKEN }}
- -
name: Build name: Build
uses: docker/build-push-action@v2 uses: docker/build-push-action@v3
with: with:
context: . context: .
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
@ -60,10 +60,10 @@ jobs:
- -
name: Docker meta name: Docker meta
id: docker_meta id: docker_meta
uses: crazy-max/ghaction-docker-meta@v2 uses: docker/metadata-action@v3
with: with:
images: | images: |
ghcr.io/hydrusnetwork/hydrus ghcr.io/${{ github.repository }}
tags: | tags: |
type=ref,event=tag,prefix=server- type=ref,event=tag,prefix=server-
type=raw,enable=true,prefix=,suffix=,value=server type=raw,enable=true,prefix=,suffix=,value=server
@ -75,23 +75,21 @@ jobs:
org.opencontainers.image.vendor=hydrusnetwork org.opencontainers.image.vendor=hydrusnetwork
- -
name: Set up QEMU name: Set up QEMU
uses: docker/setup-qemu-action@v1 uses: docker/setup-qemu-action@v2
- -
name: Set up Docker Buildx name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: "--debug"
- -
name: Login to GHCR name: Login to GHCR
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
uses: docker/login-action@v1 uses: docker/login-action@v2
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }} username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }} password: ${{ secrets.GHCR_TOKEN }}
- -
name: Build name: Build
uses: docker/build-push-action@v2 uses: docker/build-push-action@v3
with: with:
context: . context: .
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}

View File

@ -10,11 +10,11 @@ jobs:
steps: steps:
- -
name: Checkout name: Checkout
uses: actions/checkout@v2.3.4 uses: actions/checkout@v3
- -
name: Docker meta name: Docker meta
id: docker_meta id: docker_meta
uses: crazy-max/ghaction-docker-meta@v2 uses: docker/metadata-action@v3
with: with:
images: | images: |
ghcr.io/hydrusnetwork/hydrus ghcr.io/hydrusnetwork/hydrus
@ -26,23 +26,23 @@ jobs:
org.opencontainers.image.vendor=hydrusnetwork org.opencontainers.image.vendor=hydrusnetwork
- -
name: Set up QEMU name: Set up QEMU
uses: docker/setup-qemu-action@v1 uses: docker/setup-qemu-action@v2
- -
name: Set up Docker Buildx name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v2
with: with:
buildkitd-flags: "--debug" buildkitd-flags: "--debug"
- -
name: Login to GHCR name: Login to GHCR
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
uses: docker/login-action@v1 uses: docker/login-action@v2
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }} username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }} password: ${{ secrets.GHCR_TOKEN }}
- -
name: Build name: Build
uses: docker/build-push-action@v2 uses: docker/build-push-action@v3
with: with:
context: . context: .
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
@ -56,14 +56,14 @@ jobs:
steps: steps:
- -
name: Checkout name: Checkout
uses: actions/checkout@v2.3.4 uses: actions/checkout@v3
- -
name: Docker meta name: Docker meta
id: docker_meta id: docker_meta
uses: crazy-max/ghaction-docker-meta@v2 uses: docker/metadata-action@v3
with: with:
images: | images: |
ghcr.io/hydrusnetwork/hydrus ghcr.io/${{ github.repository }}
tags: | tags: |
type=ref,event=tag,prefix=server- type=ref,event=tag,prefix=server-
type=raw,enable=true,prefix=,suffix=,value=server type=raw,enable=true,prefix=,suffix=,value=server
@ -75,23 +75,21 @@ jobs:
org.opencontainers.image.vendor=hydrusnetwork org.opencontainers.image.vendor=hydrusnetwork
- -
name: Set up QEMU name: Set up QEMU
uses: docker/setup-qemu-action@v1 uses: docker/setup-qemu-action@v2
- -
name: Set up Docker Buildx name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: "--debug"
- -
name: Login to GHCR name: Login to GHCR
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
uses: docker/login-action@v1 uses: docker/login-action@v2
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }} username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }} password: ${{ secrets.GHCR_TOKEN }}
- -
name: Build name: Build
uses: docker/build-push-action@v2 uses: docker/build-push-action@v3
with: with:
context: . context: .
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}