Skip to content

Commit

Permalink
ci: added generate sha step
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasgmarques committed Jul 11, 2024
1 parent dc1a297 commit e5b9302
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Generate SHA
id: generate_sha
run: |
SHA=$(echo $GITHUB_SHA | head -c7)
echo "sha=$SHA" >> $GITHUB_OUTPUT
- name: Build docker image
run: docker build -t lucasgmarques/nlw-api-journey:latest .
run: docker build -t lucasgmarques/nlw-api-journey:${{ steps.generate_sha.outputs.sha }} .

0 comments on commit e5b9302

Please sign in to comment.