From 1941d196bb30f223b086dbf2adfb38506c8d4fac Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Sun, 22 Jan 2023 13:52:01 -0600 Subject: [PATCH] Additional docker tags --- .github/workflows/main_matrix.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main_matrix.yml b/.github/workflows/main_matrix.yml index dbbd0e52e..fb01f3208 100644 --- a/.github/workflows/main_matrix.yml +++ b/.github/workflows/main_matrix.yml @@ -137,19 +137,26 @@ jobs: release/device-*.bat - 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 + - name: Docker build and push tagged versions if: ${{ github.event_name == 'workflow_dispatch' }} uses: docker/build-push-action@v3 + with: + context: . + file: ./Dockerfile + push: true + tags: meshtastic/device-simulator:${{ steps.version.outputs.version }} + + - name: Docker build and push + if: github.ref == 'refs/heads/master' + uses: docker/build-push-action@v3 with: context: . file: ./Dockerfile