From d0cf70c8b3effe39ab86cc95a6be71c1e17e8393 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Tue, 27 Jun 2023 06:59:28 -0500 Subject: [PATCH] Remove docker steps from PR build process --- .github/workflows/main_matrix.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main_matrix.yml b/.github/workflows/main_matrix.yml index caf04fff6..1cac7479b 100644 --- a/.github/workflows/main_matrix.yml +++ b/.github/workflows/main_matrix.yml @@ -150,12 +150,14 @@ jobs: release/device-*.bat - name: Docker login + if: ${{ github.event_name != 'pull_request_target' && github.event_name != 'pull_request' }} uses: docker/login-action@v2 with: username: meshtastic password: ${{ secrets.DOCKER_TOKEN }} - name: Docker setup + if: ${{ github.event_name != 'pull_request_target' && github.event_name != 'pull_request' }} uses: docker/setup-buildx-action@v2 - name: Docker build and push tagged versions @@ -168,7 +170,7 @@ jobs: tags: meshtastic/device-simulator:${{ steps.version.outputs.version }} - name: Docker build and push - if: github.ref == 'refs/heads/master' + if: ${{ github.ref == 'refs/heads/master' && github.event_name != 'pull_request_target' && github.event_name != 'pull_request' }} uses: docker/build-push-action@v3 with: context: .