Skip to content

Commit

Permalink
fix(generate.yml): update spacectl stack deploy command to include se…
Browse files Browse the repository at this point in the history
…tting current commit before deployment

The previous command only deployed the stack without setting the current commit. This caused issues with tracking the deployed version. The updated command now sets the current commit to the latest commit SHA before deploying the stack.
  • Loading branch information
jandroav committed Jan 5, 2024
1 parent b874569 commit 8f92db3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ jobs:
SPACELIFT_API_KEY_ENDPOINT: ${{ secrets.SPACELIFT_API_KEY_ENDPOINT }}
SPACELIFT_API_KEY_ID: ${{ secrets.SPACELIFT_API_KEY_ID }}
SPACELIFT_API_KEY_SECRET: ${{ secrets.SPACELIFT_API_KEY_SECRET }}
run: spacectl stack deploy --id liquibase-github-actions --auto-confirm
run: |
spacectl stack set-current-commit --id liquibase-github-actions --commit ${{ github.sha }}
spacectl stack deploy --id liquibase-github-actions --auto-confirm
generate-action:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8f92db3

Please sign in to comment.