From dde80f4c1ee742acaf8a128bf12fe51d04643a1b Mon Sep 17 00:00:00 2001 From: Will G Date: Sun, 26 Nov 2023 22:08:02 -0500 Subject: [PATCH] Fix github action --- .github/workflows/production.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 0323ea0..e1d4725 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -25,10 +25,10 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Build and push - uses: docker/build-push-action@v5 - with: - push: true - tags: | - runbooksolutions/agent:latest - ${{ github.event_name == 'release' && github.ref ? 'runbooksolutions/agent:' + github.ref : '' }} \ No newline at end of file + name: Build and push latest + if: github.event_name == 'push' + run: docker/build-push-action@v5 --push --tag runbooksolutions/agent:latest . + - + name: Build and push tag + if: github.event_name == 'release' && github.ref + run: docker/build-push-action@v5 --push --tag runbooksolutions/agent:${{ github.event.release.tag_name }} .