diff --git a/.github/workflows/router.yml b/.github/workflows/router.yml index 4ebc8ba..cc5ceb5 100644 --- a/.github/workflows/router.yml +++ b/.github/workflows/router.yml @@ -43,7 +43,7 @@ jobs: sudo apt-get install -y qemu-user-static - name: Build unstable image - if: ${{ inputs.event == 'push' || inputs.event == 'pull' }} + if: ${{ inputs.event == 'push' || inputs.event == 'pull_request' }} run: buildah bud --platform ${{ matrix.platform.name }} --build-arg FROM_IMAGE=${{ format('ghcr.io/zyclonite/{0}', env.IMAGE_NAME) }} --build-arg FROM_VERSION=main -f ./Dockerfile.router -t ${{ env.IMAGE_NAME }}:${{ matrix.platform.tag }} . - name: Build stable image @@ -97,7 +97,7 @@ jobs: buildah manifest add --arch riscv64 ${{ env.IMAGE_NAME }}:latest ${{ env.IMAGE_NAME }}:riscv64 - name: Push unstable images - if: ${{ inputs.event == 'push' || inputs.event == 'pull' }} + if: ${{ inputs.event == 'push' || inputs.event == 'pull_request' }} run: | buildah manifest push --all --format v2s2 --creds zyclonite:${{ secrets.REGISTRY_PASSWORD }} ${{ env.IMAGE_NAME }}:latest docker://docker.io/zyclonite/${{ env.IMAGE_NAME }}:router-main buildah manifest push --all --creds zyclonite:${{ secrets.QUAY_PASSWORD }} ${{ env.IMAGE_NAME }}:latest docker://quay.io/zyclonite/${{ env.IMAGE_NAME }}:router-main