Browse Source

fix github action on manual build

Paolo Asperti 3 years ago
parent
commit
269f2fe0eb
1 changed files with 2 additions and 0 deletions
  1. 2 0
      .github/workflows/build.yaml

+ 2 - 0
.github/workflows/build.yaml

@@ -210,8 +210,10 @@ jobs:
210
           echo "MAJOR_TAG=$M" >> $GITHUB_ENV
210
           echo "MAJOR_TAG=$M" >> $GITHUB_ENV
211
 
211
 
212
       # manifest for :1.2.3 tag
212
       # manifest for :1.2.3 tag
213
+      #  this has to run only if invoked by a new tag
213
       - name: Create and push manifest (:ve.rs.ion)
214
       - name: Create and push manifest (:ve.rs.ion)
214
         uses: Noelware/docker-manifest-action@master
215
         uses: Noelware/docker-manifest-action@master
216
+        if: github.event_name != 'workflow_dispatch'
215
         with:
217
         with:
216
           base-image: ${{ secrets.DOCKER_IMAGE }}:${{ env.GIT_TAG }}
218
           base-image: ${{ secrets.DOCKER_IMAGE }}:${{ env.GIT_TAG }}
217
           extra-images: ${{ secrets.DOCKER_IMAGE }}:${{ env.GIT_TAG }}-amd64,${{ secrets.DOCKER_IMAGE }}:${{ env.GIT_TAG }}-arm64v8,${{ secrets.DOCKER_IMAGE }}:${{ env.GIT_TAG }}-armv7,${{ secrets.DOCKER_IMAGE }}:${{ env.GIT_TAG }}-i386
219
           extra-images: ${{ secrets.DOCKER_IMAGE }}:${{ env.GIT_TAG }}-amd64,${{ secrets.DOCKER_IMAGE }}:${{ env.GIT_TAG }}-arm64v8,${{ secrets.DOCKER_IMAGE }}:${{ env.GIT_TAG }}-armv7,${{ secrets.DOCKER_IMAGE }}:${{ env.GIT_TAG }}-i386