Skip to content

Commit

Permalink
feat: Add workflows for external image syncing (#1505)
Browse files Browse the repository at this point in the history
  • Loading branch information
k15r authored Oct 9, 2024
1 parent 8d56177 commit 91a0f8f
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/branch-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
- '**/*.md'
- 'OWNERS'
- 'CODEOWNERS'
- 'external-images.yaml'
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -49,7 +50,7 @@ jobs:
GARDENER_PROJECT: ${{ secrets.GARDENER_PROJECT }}
GARDENER_SA_PATH: /tmp/gardener-sa.yaml
GARDENER_K8S_VERSION: ${{ matrix.k8s_version }}

- name: Upload Report
uses: actions/upload-artifact@v4
if: success() || failure()
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
- '**/*.md'
- 'OWNERS'
- 'CODEOWNERS'
- 'external-images.yaml'
push:
branches:
- "main"
Expand All @@ -24,6 +25,7 @@ on:
- '**/*.md'
- 'OWNERS'
- 'CODEOWNERS'
- 'external-images.yaml'
jobs:
envs:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-code-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
- '**/*.md'
- 'OWNERS'
- 'CODEOWNERS'
- 'external-images.yaml'
workflow_dispatch:

env:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pr-docu-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
branches:
- "main"
- "release-*"
paths-ignore:
- 'dependencies/**'
- 'OWNERS'
- 'CODEOWNERS'
- 'external-images.yaml'
workflow_dispatch:

jobs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
- '**/*.md'
- 'OWNERS'
- 'CODEOWNERS'
- 'external-images.yaml'
workflow_dispatch:

jobs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-lifecycle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
- '**/*.md'
- 'OWNERS'
- 'CODEOWNERS'
- 'external-images.yaml'
workflow_dispatch:

jobs:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/sync-external-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: sync-external-images

on:
push:
branches:
- main
paths:
- "external-images.yaml"
pull_request_target:
types: [ opened, edited, synchronize, reopened, ready_for_review ]
branches:
- main
paths:
- "external-images.yaml"

permissions:
id-token: write # This is required for requesting the JWT token
contents: read # This is required for actions/checkout

jobs:
sync-external-images:
uses: kyma-project/test-infra/.github/workflows/image-syncer.yml@main
with:
debug: true
3 changes: 3 additions & 0 deletions external-images.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
images:
- source: "fluent/fluent-bit@sha256:4af3920cc2ff976200e0fc09f23e7ca4ee7d4477a6d592cb496fc39378181b02"
tag: "3.1.9" # used by the kyma telemetry module

0 comments on commit 91a0f8f

Please sign in to comment.