From 42528ad810af142e9ac7ca87d82dfa0ee59b037d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarom=C3=ADr=20Smr=C4=8Dek?= <4plague@gmail.com> Date: Wed, 29 May 2024 23:43:38 +0200 Subject: [PATCH] Remove 'Build and Publish Docker Image' from PR actions --- .github/workflows/publish-docker.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index 795459726..8ca69b722 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -1,7 +1,7 @@ name: Build and Publish Docker Image env: - platforms: ${{ (github.event_name == 'pull_request' && 'linux/amd64') || 'linux/amd64,linux/arm64' }} + platforms: ${{ 'linux/amd64,linux/arm64' }} on: push: @@ -12,10 +12,6 @@ on: paths-ignore: - 'docs/**' - '**/*.md' - pull_request: - paths-ignore: - - 'docs/**' - - '**/*.md' workflow_dispatch: inputs: platforms: @@ -29,7 +25,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.event_name == 'release' && github.ref || github.event_name == 'push' && github.ref || github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.event_name == 'pull_request' && github.event.pull_request.head.ref }} + ref: ${{ github.event_name == 'release' && github.ref || github.event_name == 'push' && github.ref }} - uses: docker/metadata-action@v5 id: meta with: @@ -64,7 +60,6 @@ jobs: version: latest endpoint: ${{ env.CONTEXT_NAME }} # self-hosted - name: Login to GHCR - if: github.event_name != 'pull_request' uses: docker/login-action@v3 with: registry: ghcr.io @@ -76,7 +71,7 @@ jobs: with: context: . platforms: ${{env.platforms}} - push: ${{ github.event_name != 'pull_request' && github.event_name != 'workflow_dispatch' }} + push: ${{ github.event_name != 'workflow_dispatch' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} target: production