Skip to content

Commit

Permalink
[FIX] Adiciona condição para esperar build de imagens docker (#198)
Browse files Browse the repository at this point in the history
* 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
Hellcassius and pre-commit-ci[bot] authored Sep 10, 2024
1 parent 172e253 commit 025c7f6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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'
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/cd_staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand Down
2 changes: 2 additions & 0 deletions pipelines/janitor/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@
)
janitor_flow.state_handlers = [handler_inject_bd_credentials, handler_initialize_sentry]
janitor_flow.schedule = every_5_minutes

# trigger cd

0 comments on commit 025c7f6

Please sign in to comment.