-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] Adiciona condição para esperar build de imagens docker (#198)
* add condition to wait for fedora image * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add more descriptive names * trigger cd * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
172e253
commit 025c7f6
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,16 @@ jobs: | |
run: |- | ||
python .github/workflows/scripts/replace_docker_tag.py fedora gcr.io/rj-smtr/pipelines-fedora ${{ github.sha }} | ||
- name: Get changed filepaths | ||
uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
filters: | | ||
docker_fedora: | ||
- "pipelines/serpro/*" | ||
- "pyproject.toml" | ||
- "Dockerfile-fedora" | ||
- name: Get changed files for code tree analysis | ||
id: files | ||
uses: Ana06/[email protected] | ||
|
@@ -77,8 +87,9 @@ jobs: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
verbose: true | ||
|
||
- name: Wait for Docker image to be available | ||
- name: Wait for Docker Fedora image to be available | ||
uses: lewagon/[email protected] | ||
if: ${{ steps.filter.outputs.docker_fedora }}=='true' | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha || github.sha }} | ||
check-name: 'Build Fedora Image' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,15 @@ jobs: | |
run: |- | ||
python .github/workflows/scripts/replace_docker_tag.py fedora gcr.io/rj-smtr/pipelines-fedora ${{ github.sha }} | ||
- name: Get changed filepaths | ||
uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
filters: | | ||
docker_fedora: | ||
- "pipelines/serpro/*" | ||
- "pyproject.toml" | ||
- "Dockerfile-fedora" | ||
- name: Get changed files for code tree analysis | ||
id: files | ||
|
@@ -76,8 +85,9 @@ jobs: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
verbose: true | ||
|
||
- name: Wait for Docker image to be available | ||
- name: Wait for Docker Fedora image to be available | ||
uses: lewagon/[email protected] | ||
if: ${{steps.filter.outputs.docker_fedora}}=='true' | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha || github.sha }} | ||
check-name: 'Build Fedora Image' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters