-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.08 KB
/
main.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Main
on:
push:
branches: [ main ]
pull_request: { }
jobs:
required-meta:
permissions:
contents: read
checks: write
pull-requests: write
uses: BlindfoldedSurgery/actions-meta/.github/workflows/required.yml@v1
build-container-image:
permissions:
contents: read
packages: write
uses: preparingforexams/actions-container/.github/workflows/build-dual-image-kaniko.yml@v7
with:
push-image: ${{ github.ref_name == github.event.repository.default_branch }}
post-build-container-image:
runs-on: ubuntu-24.04
if: github.event_name == 'pull_request'
needs: build-container-image
steps:
- run: echo "All images built"
deploy:
runs-on: ubuntu-24.04
if: github.ref_name == github.event.repository.default_branch
needs:
- build-container-image
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git push origin main:release
clean:
concurrency: cleanup
needs: [ deploy ]
uses: preparingforexams/actions-container/.github/workflows/clean.yml@v7