Skip to content

Commit

Permalink
Build images in GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
dekiel committed Jun 5, 2024
1 parent d311a8d commit 9afc41f
Show file tree
Hide file tree
Showing 8 changed files with 109 additions and 304 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/pull-build-rotate-service-account-keys.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: pull-build-rotate-service-account-keys.yml
# description: Build image for rotate-service-account
on:
pull_request_target:
types: [ opened, edited, synchronize, reopened, ready_for_review ]
paths:
- "cmd/cloud-run/rotate-service-account/Dockerfile"
- "cmd/cloud-run/rotate-service-account/*.go"
- "pkg/**"
- "go.mod"
- "go.sum"

jobs:
build_oidc-token-verifier:
uses: ./.github/workflows/image-builder.yml
with:
name: test-infra/rotate-service-account
dockerfile: cmd/cloud-run/rotate-service-account/Dockerfile
context: .
19 changes: 19 additions & 0 deletions .github/workflows/pull-build-service-account-keys-cleaner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: pull-build--service-account-keys-cleaner.yml
# description: Build image for service-account-keys-cleaner
on:
pull_request_target:
types: [ opened, edited, synchronize, reopened, ready_for_review ]
paths:
- "cmd/cloud-run/service-account-keys-cleaner/Dockerfile"
- "cmd/cloud-run/service-account-keys-cleaner/*.go"
- "pkg/**"
- "go.mod"
- "go.sum"

jobs:
build_oidc-token-verifier:
uses: ./.github/workflows/image-builder.yml
with:
name: test-infra/service-account-keys-cleaner
dockerfile: cmd/cloud-run/service-account-keys-cleaner/Dockerfile
context: .
15 changes: 15 additions & 0 deletions .github/workflows/pull-build-slack-message-sender.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: pull-build-slack-message-sender.yml
# description: "Build slack-message-sender image for sending labeling notification to kyma teams.
on:
pull_request_target:
types: [ opened, edited, synchronize, reopened, ready_for_review ]
paths:
- "cmd/cloud-run/slack-message-sender/**"

jobs:
build_oidc-token-verifier:
uses: ./.github/workflows/image-builder.yml
with:
name: test-infra/slackmessagesender
dockerfile: cmd/cloud-run/slack-message-sender/Dockerfile
context: .
20 changes: 20 additions & 0 deletions .github/workflows/push-build-rotate-service-account-keys.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: push-build-rotate-service-account-keys.yml
# description: Build image for rotate-service-account
on:
push:
branches:
- main
paths:
- "cmd/cloud-run/rotate-service-account/Dockerfile"
- "cmd/cloud-run/rotate-service-account/*.go"
- "pkg/**"
- "go.mod"
- "go.sum"

jobs:
build_oidc-token-verifier:
uses: ./.github/workflows/image-builder.yml
with:
name: test-infra/rotate-service-account
dockerfile: cmd/cloud-run/rotate-service-account/Dockerfile
context: .
20 changes: 20 additions & 0 deletions .github/workflows/push-build-service-account-keys-cleaner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: push-build-service-account-keys-cleaner.yml
# description: Build image for service-account-keys-cleaner
on:
push:
branches:
- main
paths:
- "cmd/cloud-run/service-account-keys-cleaner/Dockerfile"
- "cmd/cloud-run/service-account-keys-cleaner/*.go"
- "pkg/**"
- "go.mod"
- "go.sum"

jobs:
build_oidc-token-verifier:
uses: ./.github/workflows/image-builder.yml
with:
name: test-infra/service-account-keys-cleaner
dockerfile: cmd/cloud-run/service-account-keys-cleaner/Dockerfile
context: .
16 changes: 16 additions & 0 deletions .github/workflows/push-build-slack-message-sender.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: push-build-slack-message-sender.yml
# description: "Build slack-message-sender image for sending labeling notification to kyma teams.
on:
push:
branches:
- main
paths:
- "cmd/cloud-run/slack-message-sender/**"

jobs:
build_oidc-token-verifier:
uses: ./.github/workflows/image-builder.yml
with:
name: test-infra/slackmessagesender
dockerfile: cmd/cloud-run/slack-message-sender/Dockerfile
context: .
103 changes: 0 additions & 103 deletions prow/jobs/kyma-project/test-infra/secret-leaks-log-scanner.yaml

This file was deleted.

Loading

0 comments on commit 9afc41f

Please sign in to comment.