From ce16b50d5fb20dabe6c2f6782bdaa38ca51b3204 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Sun, 20 Nov 2022 07:05:49 -0600 Subject: [PATCH] Change docker push critera --- .github/workflows/main_matrix.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main_matrix.yml b/.github/workflows/main_matrix.yml index 9cf50130a..2440b2ed3 100644 --- a/.github/workflows/main_matrix.yml +++ b/.github/workflows/main_matrix.yml @@ -130,25 +130,27 @@ jobs: release/meshtasticd_linux_amd64 release/device-*.sh release/device-*.bat - retention-days: 30 - name: Docker login + if: ${{ github.event_name == 'workflow_dispatch' }} uses: docker/login-action@v2 with: username: meshtastic password: ${{ secrets.DOCKER_TOKEN }} - name: Docker setup + if: ${{ github.event_name == 'workflow_dispatch' }} uses: docker/setup-buildx-action@v2 - name: Docker build and push + if: ${{ github.event_name == 'workflow_dispatch' }} uses: docker/build-push-action@v3 with: context: . file: ./Dockerfile push: true - tags: meshtastic/device:simulator - + tags: meshtastic/device-simulator:latest + after-checks: runs-on: ubuntu-latest needs: [check]