Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use prod syncer image #12155

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/image-syncer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
--workdir /github/workspace
--rm
--volume "$GITHUB_WORKSPACE:/github/workspace"
europe-docker.pkg.dev/kyma-project/dev/test-infra/image-syncer:latest
europe-docker.pkg.dev/kyma-project/prod/image-syncer:v20241016-5e3fb3e2
--images-file=/github/workspace/external-images.yaml
--access-token=${{ steps.authenticate_in_gcp.outputs.access_token }}
--dry-run=${{ steps.set_dry_run_flag.outputs.DRY_RUN }}
Expand Down
57 changes: 57 additions & 0 deletions .github/workflows/test-failed-job.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
failed-job:
runs-on: ubuntu-latest
outputs:
output1: ${{ steps.step1.outputs.test }}
steps:
- name: failed-step-with-output
run: |
echo "This job will always fail"
echo "test=hello" >> "$GITHUB_OUTPUT"
exit 1

dependent-job:
runs-on: ubuntu-latest
needs: failed-job
if: ${{ always() }}
steps:
- name: dependent-step
run: echo "This job is dependent on failed-job"

dependent-job-2:
runs-on: ubuntu-latest
needs: failed-job
if: ${{ always() }}
steps:
- name: dependent-step
if: ${{ needs.failed-job.outputs.output1 == 'hello' }}
run: echo "This job is dependent on failed-job"

dependent-job-3:
runs-on: ubuntu-latest
needs: failed-job
if: ${{ always() && needs.failed-job.outputs.output1 == 'hello' }}
steps:
- name: dependent-step
run: echo "This job is dependent on failed-job"

dependent-job-4:
runs-on: ubuntu-latest
needs: failed-job
if: ${{ always() }}
steps:
- name: dependent-step
if: ${{ needs.failed-job.result == 'failed' }}
run: |
echo "This job should fail"
exit 1
- name: this-not-fail
run: echo "do not fail"
Loading