Skip to content

Commit

Permalink
ci: add builds for each commit
Browse files Browse the repository at this point in the history
  • Loading branch information
farioas committed Dec 14, 2023
1 parent bbe4dba commit 054d585
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
image_version: ${{ steps.version.outputs.image_version }}
build_version: ${{ steps.version.outputs.build_version }}
steps:
- uses: hmarr/[email protected]

Expand Down Expand Up @@ -115,7 +116,7 @@ jobs:
file: Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ env.IMAGE_NAME }}:${{ steps.version.outputs.image_version }}
tags: ${{ env.IMAGE_NAME }}:${{ steps.version.outputs.image_version }},${{ env.IMAGE_NAME }}:${{ steps.version.outputs.build_version }}
cache-from: type=gha
cache-to: type=gha,mode=max

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
body: |
> Docker image was pushed with the tag `${{ needs.build-docker.outputs.image_version }}`
> Docker image was pushed with the tag `${{ needs.build-docker.outputs.build_version }}`
reactions: "+1"

- name: Add reaction to command comment on failure
Expand Down

0 comments on commit 054d585

Please sign in to comment.