diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4dafc8b..1bc8845 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,8 +5,8 @@ on: branches: ["main"] tags: ["v*"] pull_request: - types: - - review_requested + #types: + # - review_requested env: REGISTRY: ghcr.io @@ -24,11 +24,13 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + submodules: "recursive" - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: - registry: ghcr.io + registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} @@ -47,14 +49,14 @@ jobs: uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 with: context: . - push: ${{ github.event_name != 'pull_request' }} + # push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - name: Generate artifact attestation uses: actions/attest-build-provenance@v1 with: - subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} + subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}:${{ steps.push.outputs.tags }} subject-digest: ${{ steps.push.outputs.digest }} push-to-registry: true