ci: also push docker to hub for pr

This commit is contained in:
Andy Hsu
2024-02-21 14:58:45 +08:00
parent 0c7e47a76c
commit 858ba19670
2 changed files with 26 additions and 3 deletions

View File

@ -38,7 +38,6 @@ jobs:
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
if: github.event_name == 'push'
uses: docker/login-action@v3
with:
username: xhofe
@ -50,7 +49,7 @@ jobs:
with:
context: .
file: Dockerfile.ci
push: ${{ github.event_name == 'push' }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/386,linux/arm/v6,linux/s390x
@ -69,7 +68,7 @@ jobs:
uses: docker/build-push-action@v5
with:
file: Dockerfile.ffmpeg
push: ${{ github.event_name == 'push' }}
push: true
tags: ${{ steps.meta-ffmpeg.outputs.tags }}
labels: ${{ steps.meta-ffmpeg.outputs.labels }}
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/386,linux/arm/v6,linux/s390x