-
Notifications
You must be signed in to change notification settings - Fork 76
83 lines (81 loc) · 2.74 KB
/
push-images.yml
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
name: Push Images to Quay
on:
deployment:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
build-images:
name: Build and Push images
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: "base images"
modules: "quarkus-distroless-base-image,quarkus-micro-base-image"
args: ""
- name: "s2i binary images"
modules: "quarkus-binary-s2i"
args: ""
- name: "s2i native images"
modules: "quarkus-native-s2i"
args: ""
- name: "mandrel builder images (latest)"
modules: "quarkus-mandrel-builder-image"
args: ""
- name: "mandrel builder images (23.0.x)"
modules: "quarkus-mandrel-builder-image"
args: "-Pmandrel-23.0.x"
- name: "mandrel builder images (22.x)"
modules: "quarkus-mandrel-builder-image"
args: "-Pmandrel-22.x"
- name: "graalvm ce builder images (latest)"
modules: "quarkus-graalvm-builder-image"
args: ""
- name: "graalvm ce builder images 22.x"
modules: "quarkus-graalvm-builder-image"
args: "-Pgraalvm-22.x"
steps:
- name: Re-claim some disk space
run: |
sudo swapoff -a
sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android \
/usr/local/share/powershell /usr/share/swift /usr/local/.ghcup
sudo apt-get clean
yes | docker system prune -a
df -h
- uses: actions/checkout@v1
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: amd64,arm64
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
install: true
- name: Inspect builder
run: |
echo "Name: ${{ steps.buildx.outputs.name }}"
echo "Endpoint: ${{ steps.buildx.outputs.endpoint }}"
echo "Status: ${{ steps.buildx.outputs.status }}"
echo "Flags: ${{ steps.buildx.outputs.flags }}"
echo "Platforms: ${{ steps.buildx.outputs.platforms }}"
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USER }}
password: ${{ secrets.QUAY_TOKEN }}
- name: Build images
run: mvn install --projects ${{ matrix.modules }} --also-make -DskipTests -Ppush ${{ matrix.args }}
- name: Print ${{ matrix.name}}
if: always()
run: |
df -h
docker images