Skip to content

Commit

Permalink
fix: don't push docker on pr due to security
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Feb 23, 2024
1 parent f1979a8 commit 742335f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 26 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
if: github.event_name == 'push'
uses: docker/login-action@v3
with:
username: xhofe
Expand All @@ -57,7 +58,7 @@ jobs:
with:
context: .
file: Dockerfile.ci
push: true
push: ${{ github.event_name == 'push' }}
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
Expand All @@ -67,7 +68,7 @@ jobs:
uses: docker/build-push-action@v5
with:
file: Dockerfile.ffmpeg
push: true
push: ${{ github.event_name == 'push' }}
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
Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/del-pr-docker.yml

This file was deleted.

0 comments on commit 742335f

Please sign in to comment.