forked from containers/toolbox
-
Notifications
You must be signed in to change notification settings - Fork 4
61 lines (51 loc) · 1.65 KB
/
ubuntu-images.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
name: "Images: Build and push Ubuntu toolbx images"
on:
push:
branches:
- main
paths:
- images/ubuntu/**
- .github/workflows/ubuntu-images.yaml
schedule:
- cron: '0 0 * * MON'
# Prevent multiple workflow runs from racing
concurrency: ${{ github.workflow }}
env:
latest_release: '22.04'
jobs:
build-and-push-images:
strategy:
matrix:
release: ['16.04', '18.04', '20.04', '22.04', '22.10', '23.04']
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Quay.io
uses: docker/login-action@v2
with:
registry: quay.io
username: 'toolbx+github'
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
- name: Build and push Ubuntu ${{ matrix.release }} toolbox image
uses: docker/build-push-action@v3
with:
context: images/ubuntu/${{ matrix.release }}
file: images/ubuntu/${{ matrix.release }}/Containerfile
platforms: linux/amd64,linux/arm64
push: true
no-cache: true
tags: quay.io/toolbx/ubuntu-toolbox:${{ matrix.release }}
- name: Push latest tag
if: env.latest_release == matrix.release
uses: docker/build-push-action@v3
with:
context: images/ubuntu/${{ matrix.release }}
file: images/ubuntu/${{ matrix.release }}/Containerfile
platforms: linux/amd64,linux/arm64
push: true
tags: quay.io/toolbx/ubuntu-toolbox:latest