2021-01-05 05:26:43 +00:00
|
|
|
name: Docker Multi-Architecture Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- "**.md"
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
2023-08-14 10:26:52 +00:00
|
|
|
build-jdk:
|
|
|
|
uses: ./.github/workflows/fat-build.yml
|
|
|
|
|
2022-09-10 20:34:31 +00:00
|
|
|
build-docker:
|
2023-08-14 10:26:52 +00:00
|
|
|
needs: build-jdk
|
2021-01-05 05:26:43 +00:00
|
|
|
runs-on: ubuntu-latest
|
2022-09-10 20:34:31 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
include:
|
2023-10-10 21:52:26 +00:00
|
|
|
# - image: 1337kavin/piped:openj9
|
|
|
|
# dockerfile: ./Dockerfile.openj9.ci
|
|
|
|
# - image: 1337kavin/piped:hotspot
|
|
|
|
# dockerfile: ./Dockerfile.ci
|
2023-06-01 18:41:09 +00:00
|
|
|
- image: 1337kavin/piped:latest,1337kavin/piped:azul-zulu
|
|
|
|
dockerfile: ./Dockerfile.azul.ci
|
2023-04-27 12:05:05 +00:00
|
|
|
- image: 1337kavin/piped:graalvm-jvm
|
|
|
|
dockerfile: ./Dockerfile.graalvm-jvm.ci
|
2021-01-05 05:26:43 +00:00
|
|
|
steps:
|
2023-09-04 14:18:06 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-08-14 10:26:52 +00:00
|
|
|
- uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: piped.jar
|
2022-02-22 09:16:45 +00:00
|
|
|
- name: Create Version File
|
|
|
|
run: echo $(git log -1 --date=short --pretty=format:%cd)-$(git rev-parse --short HEAD) > VERSION
|
2021-01-05 05:26:43 +00:00
|
|
|
- name: Set up QEMU
|
2023-09-12 14:26:00 +00:00
|
|
|
uses: docker/setup-qemu-action@v3
|
2021-01-05 05:26:43 +00:00
|
|
|
with:
|
|
|
|
platforms: all
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
id: buildx
|
2023-09-12 14:25:56 +00:00
|
|
|
uses: docker/setup-buildx-action@v3
|
2021-01-05 05:26:43 +00:00
|
|
|
with:
|
|
|
|
version: latest
|
|
|
|
- name: Login to DockerHub
|
2023-09-12 10:27:30 +00:00
|
|
|
uses: docker/login-action@v3
|
2021-01-05 05:26:43 +00:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
- name: Build and push
|
2023-09-12 10:27:27 +00:00
|
|
|
uses: docker/build-push-action@v5
|
2021-01-05 05:26:43 +00:00
|
|
|
with:
|
|
|
|
context: .
|
2022-09-10 20:34:31 +00:00
|
|
|
file: ${{ matrix.dockerfile }}
|
2021-01-05 05:26:43 +00:00
|
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
push: true
|
2022-09-10 20:34:31 +00:00
|
|
|
tags: ${{ matrix.image }}
|
2022-06-02 12:22:11 +00:00
|
|
|
cache-from: type=gha
|
|
|
|
cache-to: type=gha,mode=max
|