Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/build-push-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
build-and-push-docker:
runs-on: ubuntu-latest

# Só executa se o workflow "code_check_ci" for bem-sucedido
if: ${{ github.event.workflow_run.conclusion == 'success' }}

steps:
Expand All @@ -27,6 +28,10 @@ jobs:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}

- name: Extract Git commit hash
id: extract_version
run: echo "DOCKER_IMAGE_VERSION=$(git rev-parse --short HEAD)" >> $GITHUB_ENV

- name: Build and push image to DockerHub
uses: docker/build-push-action@v4
with:
Expand Down