build but only push for release

This commit is contained in:
Deepak Prabhakara 2023-09-12 20:00:09 +01:00
parent 280650df59
commit b28e7202b2

View File

@ -45,14 +45,13 @@ jobs:
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push
if: github.ref == 'refs/heads/release'
id: docker_build
uses: docker/build-push-action@v5
with:
context: ./
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
push: ${{ github.ref == 'refs/heads/release' }}
tags: ${{ github.repository }}:latest,${{ github.repository }}:${{ steps.slug.outputs.sha7 }},${{ github.repository }}:${{ steps.npmversion.outputs.npmversion }}
- name: Image digest