Skip to content

Commit

Permalink
fix: checkout repository with submodules: recursive option, so API su…
Browse files Browse the repository at this point in the history
…bmodule is initialized in docker job
  • Loading branch information
Merseleo committed Mar 6, 2025
1 parent 4a3b87e commit 3237bef
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
branches: ["main"]
tags: ["v*"]
pull_request:
types:
- review_requested
#types:
# - review_requested

env:
REGISTRY: ghcr.io
Expand All @@ -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 }}

Expand All @@ -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

Expand Down

0 comments on commit 3237bef

Please sign in to comment.