diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f2c97c8..8dd7a00 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,8 +31,9 @@ jobs: - name: Build Docker image run: | docker build . -t ghcr.io/zeuswpi/zess:pr-${{ github.sha }} - docker tag ghcr.io/zeuswpi/zess:pr-${{ github.sha }} ghcr.io/zeuswpi/zess:latest + if [ "${{ github.event_name }}" == "push" ]; then + docker tag ghcr.io/zeuswpi/zess:pr-${{ github.sha }} ghcr.io/zeuswpi/zess:latest + fi - name: Push Docker image - if: github.event_name == 'push' run: docker push --all-tags ghcr.io/zeuswpi/zess