-
Notifications
You must be signed in to change notification settings - Fork 3
102 lines (100 loc) · 2.93 KB
/
pr-opened-or-edited.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: pr-check
on:
pull_request:
types: [opened, reopened, edited]
branches: [main]
jobs:
build-updated-images:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
alpine:
- 'alpine/**'
busybox:
- 'busybox/**'
docker:
- 'docker/**'
fedora:
- 'fedora/**'
golang:
- 'golang/**'
openjdk:
- 'openjdk/**'
ubi8:
- 'ubi8/**'
ubi9:
- 'ubi9/**'
ubuntu:
- 'ubuntu/**'
- name: Build and push alpine
uses: docker/build-push-action@v6
if: steps.filter.outputs.alpine == 'true'
with:
context: alpine
push: true
tags: ttl.sh/cloud-dev-images-alpine
- name: Build and push busybox
uses: docker/build-push-action@v6
if: steps.filter.outputs.busybox == 'true'
with:
context: busybox
push: true
tags: ttl.sh/cloud-dev-images-busybox
- name: Build and push docker
uses: docker/build-push-action@v6
if: steps.filter.outputs.docker == 'true'
with:
context: docker
push: true
tags: ttl.sh/cloud-dev-images-docker
- name: Build and push fedora
uses: docker/build-push-action@v6
if: steps.filter.outputs.fedora == 'true'
with:
context: fedora
push: true
tags: ttl.sh/cloud-dev-images-fedora
- name: Build and push golang
uses: docker/build-push-action@v6
if: steps.filter.outputs.golang == 'true'
with:
context: golang
push: true
tags: ttl.sh/cloud-dev-images-golang
- name: Build and push openjdk
uses: docker/build-push-action@v6
if: steps.filter.outputs.openjdk == 'true'
with:
context: openjdk
push: true
tags: ttl.sh/cloud-dev-images-openjdk
- name: Build and push ubi8
uses: docker/build-push-action@v6
if: steps.filter.outputs.ubi8 == 'true'
with:
context: ubi8
push: true
tags: ttl.sh/cloud-dev-images-ubi8
- name: Build and push ubi9
uses: docker/build-push-action@v6
if: steps.filter.outputs.ubi9 == 'true'
with:
context: ubi9
push: true
tags: ttl.sh/cloud-dev-images-ubi9
- name: Build and push ubuntu
uses: docker/build-push-action@v6
if: steps.filter.outputs.ubuntu == 'true'
with:
context: ubuntu
push: true
tags: ttl.sh/cloud-dev-images-ubuntu