Push Images to Quay #315
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |