47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
name: Build
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- reopened
|
|
- synchronize
|
|
workflow_dispatch: {}
|
|
|
|
jobs:
|
|
build-arm64:
|
|
runs-on: ubuntu-latest-arm64
|
|
steps:
|
|
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
|
|
- uses: docker/setup-qemu-action@1f40c72289eff860ee54a304f1438e3cff362e0a # v4.3.0
|
|
- uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0
|
|
|
|
- name: Build image
|
|
run: |
|
|
TAG=latest
|
|
|
|
docker buildx build \
|
|
--platform linux/arm64 \
|
|
--file Dockerfile \
|
|
--provenance false \
|
|
--tag git.cryptic.systems/volker.raschek/docker-compose:${TAG}-arm64 \
|
|
.
|
|
|
|
build-amd64:
|
|
runs-on: ubuntu-latest-amd64
|
|
steps:
|
|
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
|
|
- uses: docker/setup-qemu-action@1f40c72289eff860ee54a304f1438e3cff362e0a # v4.3.0
|
|
- uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0
|
|
|
|
- name: Build image
|
|
run: |
|
|
TAG=latest
|
|
|
|
docker buildx build \
|
|
--platform linux/amd64 \
|
|
--file Dockerfile \
|
|
--provenance false \
|
|
--tag git.cryptic.systems/volker.raschek/docker-compose:${TAG}-amd64 \
|
|
.
|