-
Notifications
You must be signed in to change notification settings - Fork 3
179 lines (168 loc) · 6.25 KB
/
get-deb.yml
File metadata and controls
179 lines (168 loc) · 6.25 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
name: get-deb
on:
push:
paths:
- 'get-deb/**'
- '.github/workflows/get-deb.yml'
schedule:
- cron: '10 3 1 * *'
jobs:
docker_get_deb:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Login to DockerHub
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: github.ref == 'refs/heads/master'
- name: Build and push get-deb image (latest)
id: docker_build_push_get_deb
uses: docker/build-push-action@v7
with:
push: ${{ github.ref == 'refs/heads/master' }}
tags: joelnb/get-deb:latest
context: ./get-deb
file: ./get-deb/Dockerfile
- name: Image digest (latest)
run: echo ${{ steps.docker_build_push_get_deb.outputs.digest }}
- name: Scan image (latest)
uses: anchore/scan-action@v7
with:
image: joelnb/get-deb:latest
fail-build: false
if: github.ref == 'refs/heads/master'
- name: Build and push get-deb image (xenial)
id: docker_build_push_get_deb_xenial
uses: docker/build-push-action@v7
with:
push: ${{ github.ref == 'refs/heads/master' }}
tags: joelnb/get-deb:xenial
context: ./get-deb
file: ./get-deb/Dockerfile-xenial
- name: Image digest (xenial)
run: echo ${{ steps.docker_build_push_get_deb_xenial.outputs.digest }}
- name: Scan image (xenial)
uses: anchore/scan-action@v7
with:
image: joelnb/get-deb:xenial
fail-build: false
if: github.ref == 'refs/heads/master'
- name: Build and push get-deb image (bionic)
id: docker_build_push_get_deb_bionic
uses: docker/build-push-action@v7
with:
push: ${{ github.ref == 'refs/heads/master' }}
tags: joelnb/get-deb:bionic
context: ./get-deb
file: ./get-deb/Dockerfile-bionic
- name: Image digest (bionic)
run: echo ${{ steps.docker_build_push_get_deb_bionic.outputs.digest }}
- name: Scan image (bionic)
uses: anchore/scan-action@v7
with:
image: joelnb/get-deb:bionic
fail-build: false
if: github.ref == 'refs/heads/master'
- name: Build and push get-deb image (focal)
id: docker_build_push_get_deb_focal
uses: docker/build-push-action@v7
with:
push: ${{ github.ref == 'refs/heads/master' }}
tags: joelnb/get-deb:focal
context: ./get-deb
file: ./get-deb/Dockerfile-focal
- name: Image digest (focal)
run: echo ${{ steps.docker_build_push_get_deb_focal.outputs.digest }}
- name: Scan image (focal)
uses: anchore/scan-action@v7
with:
image: joelnb/get-deb:focal
fail-build: false
if: github.ref == 'refs/heads/master'
- name: Build and push get-deb image (jammy)
id: docker_build_push_get_deb_jammy
uses: docker/build-push-action@v7
with:
push: ${{ github.ref == 'refs/heads/master' }}
tags: joelnb/get-deb:jammy
context: ./get-deb
file: ./get-deb/Dockerfile-jammy
- name: Image digest (jammy)
run: echo ${{ steps.docker_build_push_get_deb_jammy.outputs.digest }}
- name: Scan image (jammy)
uses: anchore/scan-action@v7
with:
image: joelnb/get-deb:jammy
fail-build: false
if: github.ref == 'refs/heads/master'
- name: Build and push get-deb image (debian-latest)
id: docker_build_push_get_deb_debian_latest
uses: docker/build-push-action@v7
with:
push: ${{ github.ref == 'refs/heads/master' }}
tags: joelnb/get-deb:debian-latest
context: ./get-deb
file: ./get-deb/Dockerfile-debian-latest
- name: Image digest (debian-latest)
run: echo ${{ steps.docker_build_push_get_deb_debian_latest.outputs.digest }}
- name: Scan image (debian-latest)
uses: anchore/scan-action@v7
with:
image: joelnb/get-deb:debian-latest
fail-build: false
if: github.ref == 'refs/heads/master'
- name: Build and push get-deb image (bullseye)
id: docker_build_push_get_deb_bullseye
uses: docker/build-push-action@v7
with:
push: ${{ github.ref == 'refs/heads/master' }}
tags: joelnb/get-deb:bullseye
context: ./get-deb
file: ./get-deb/Dockerfile-bullseye
- name: Image digest (bullseye)
run: echo ${{ steps.docker_build_push_get_deb_bullseye.outputs.digest }}
- name: Scan image (bullseye)
uses: anchore/scan-action@v7
with:
image: joelnb/get-deb:bullseye
fail-build: false
if: github.ref == 'refs/heads/master'
- name: Build and push get-deb image (buster)
id: docker_build_push_get_deb_buster
uses: docker/build-push-action@v7
with:
push: ${{ github.ref == 'refs/heads/master' }}
tags: joelnb/get-deb:buster
context: ./get-deb
file: ./get-deb/Dockerfile-buster
- name: Image digest (buster)
run: echo ${{ steps.docker_build_push_get_deb_buster.outputs.digest }}
- name: Scan image (buster)
uses: anchore/scan-action@v7
with:
image: joelnb/get-deb:buster
fail-build: false
if: github.ref == 'refs/heads/master'
- name: Build and push get-deb image (bookworm)
id: docker_build_push_get_deb_bookworm
uses: docker/build-push-action@v7
with:
push: ${{ github.ref == 'refs/heads/master' }}
tags: joelnb/get-deb:bookworm
context: ./get-deb
file: ./get-deb/Dockerfile-bookworm
- name: Image digest (bookworm)
run: echo ${{ steps.docker_build_push_get_deb_bookworm.outputs.digest }}
- name: Scan image (bookworm)
uses: anchore/scan-action@v7
with:
image: joelnb/get-deb:bookworm
fail-build: false
if: github.ref == 'refs/heads/master'