Bake photon-tx2-nx #8
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: Bake photon-tx2-nx | |
'on': | |
workflow_run: | |
workflows: | |
- Bake aarch64 | |
types: | |
- completed | |
workflow_dispatch: | |
inputs: | |
no-push: | |
description: Do not push to DockerHub | |
required: false | |
type: boolean | |
default: false | |
cancel-in-progress: | |
description: Cancel all in-progress bake workflows and only run this one | |
required: false | |
type: boolean | |
default: false | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: ${{ inputs.cancel-in-progress == true }} | |
jobs: | |
prepare-photon-tx2-nx-alpine-golang: | |
name: Prepare photon-tx2-nx-alpine-golang | |
runs-on: ubuntu-latest | |
needs: bake-photon-tx2-nx-alpine | |
outputs: | |
bake-targets: ${{ steps.bake-targets.outputs.matrix }} | |
env: | |
LIBRARY: library/photon-tx2-nx-alpine-golang.json | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Set matrix | |
id: bake-targets | |
run: | | |
set -x | |
targets="$(jq -cr '.group.default.targets' $LIBRARY)" | |
echo "matrix=$targets" >> $GITHUB_OUTPUT | |
bake-photon-tx2-nx-alpine-golang: | |
name: Bake photon-tx2-nx-alpine-golang | |
runs-on: | |
- self-hosted | |
- base-images | |
- ARM64 | |
timeout-minutes: 240 | |
needs: prepare-photon-tx2-nx-alpine-golang | |
env: | |
LIBRARY: library/photon-tx2-nx-alpine-golang.json | |
strategy: | |
fail-fast: false | |
matrix: | |
target: ${{ fromJSON(needs.prepare-photon-tx2-nx-alpine-golang.outputs.bake-targets) }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Setup buildx | |
id: setup-buildx | |
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb | |
with: | |
driver-opts: network=host | |
install: true | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf | |
with: | |
platforms: all | |
image: tonistiigi/binfmt:qemu-v8.0.4-33 | |
if: contains(steps.setup-buildx.outputs.platforms, 'linux/arm64') == false | |
- name: Login to DockerHub | |
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 | |
if: inputs.no-push != true | |
with: | |
registry: docker.io | |
username: ${{ secrets.BALENAIMAGES_USER }} | |
password: ${{ secrets.BALENAIMAGES_TOKEN }} | |
- name: Docker bake | |
continue-on-error: false | |
id: docker_bake | |
uses: docker/bake-action@7a5dfed3550ca014665af2a27af8fc9d7284b9b3 | |
with: | |
workdir: balena-base-images | |
files: ${{ github.workspace }}/${{ env.LIBRARY }} | |
targets: ${{ matrix.target }} | |
push: ${{ inputs.no-push != true }} | |
provenance: false | |
prepare-photon-tx2-nx-alpine-node: | |
name: Prepare photon-tx2-nx-alpine-node | |
runs-on: ubuntu-latest | |
needs: bake-photon-tx2-nx-alpine | |
outputs: | |
bake-targets: ${{ steps.bake-targets.outputs.matrix }} | |
env: | |
LIBRARY: library/photon-tx2-nx-alpine-node.json | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Set matrix | |
id: bake-targets | |
run: | | |
set -x | |
targets="$(jq -cr '.group.default.targets' $LIBRARY)" | |
echo "matrix=$targets" >> $GITHUB_OUTPUT | |
bake-photon-tx2-nx-alpine-node: | |
name: Bake photon-tx2-nx-alpine-node | |
runs-on: | |
- self-hosted | |
- base-images | |
- ARM64 | |
timeout-minutes: 240 | |
needs: prepare-photon-tx2-nx-alpine-node | |
env: | |
LIBRARY: library/photon-tx2-nx-alpine-node.json | |
strategy: | |
fail-fast: false | |
matrix: | |
target: ${{ fromJSON(needs.prepare-photon-tx2-nx-alpine-node.outputs.bake-targets) }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Setup buildx | |
id: setup-buildx | |
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb | |
with: | |
driver-opts: network=host | |
install: true | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf | |
with: | |
platforms: all | |
image: tonistiigi/binfmt:qemu-v8.0.4-33 | |
if: contains(steps.setup-buildx.outputs.platforms, 'linux/arm64') == false | |
- name: Login to DockerHub | |
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 | |
if: inputs.no-push != true | |
with: | |
registry: docker.io | |
username: ${{ secrets.BALENAIMAGES_USER }} | |
password: ${{ secrets.BALENAIMAGES_TOKEN }} | |
- name: Docker bake | |
continue-on-error: false | |
id: docker_bake | |
uses: docker/bake-action@7a5dfed3550ca014665af2a27af8fc9d7284b9b3 | |
with: | |
workdir: balena-base-images | |
files: ${{ github.workspace }}/${{ env.LIBRARY }} | |
targets: ${{ matrix.target }} | |
push: ${{ inputs.no-push != true }} | |
provenance: false | |
prepare-photon-tx2-nx-alpine-python: | |
name: Prepare photon-tx2-nx-alpine-python | |
runs-on: ubuntu-latest | |
needs: bake-photon-tx2-nx-alpine | |
outputs: | |
bake-targets: ${{ steps.bake-targets.outputs.matrix }} | |
env: | |
LIBRARY: library/photon-tx2-nx-alpine-python.json | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Set matrix | |
id: bake-targets | |
run: | | |
set -x | |
targets="$(jq -cr '.group.default.targets' $LIBRARY)" | |
echo "matrix=$targets" >> $GITHUB_OUTPUT | |
bake-photon-tx2-nx-alpine-python: | |
name: Bake photon-tx2-nx-alpine-python | |
runs-on: | |
- self-hosted | |
- base-images | |
- ARM64 | |
timeout-minutes: 240 | |
needs: prepare-photon-tx2-nx-alpine-python | |
env: | |
LIBRARY: library/photon-tx2-nx-alpine-python.json | |
strategy: | |
fail-fast: false | |
matrix: | |
target: ${{ fromJSON(needs.prepare-photon-tx2-nx-alpine-python.outputs.bake-targets) }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Setup buildx | |
id: setup-buildx | |
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb | |
with: | |
driver-opts: network=host | |
install: true | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf | |
with: | |
platforms: all | |
image: tonistiigi/binfmt:qemu-v8.0.4-33 | |
if: contains(steps.setup-buildx.outputs.platforms, 'linux/arm64') == false | |
- name: Login to DockerHub | |
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 | |
if: inputs.no-push != true | |
with: | |
registry: docker.io | |
username: ${{ secrets.BALENAIMAGES_USER }} | |
password: ${{ secrets.BALENAIMAGES_TOKEN }} | |
- name: Docker bake | |
continue-on-error: false | |
id: docker_bake | |
uses: docker/bake-action@7a5dfed3550ca014665af2a27af8fc9d7284b9b3 | |
with: | |
workdir: balena-base-images | |
files: ${{ github.workspace }}/${{ env.LIBRARY }} | |
targets: ${{ matrix.target }} | |
push: ${{ inputs.no-push != true }} | |
provenance: false | |
prepare-photon-tx2-nx-debian-golang: | |
name: Prepare photon-tx2-nx-debian-golang | |
runs-on: ubuntu-latest | |
needs: bake-photon-tx2-nx-debian | |
outputs: | |
bake-targets: ${{ steps.bake-targets.outputs.matrix }} | |
env: | |
LIBRARY: library/photon-tx2-nx-debian-golang.json | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Set matrix | |
id: bake-targets | |
run: | | |
set -x | |
targets="$(jq -cr '.group.default.targets' $LIBRARY)" | |
echo "matrix=$targets" >> $GITHUB_OUTPUT | |
bake-photon-tx2-nx-debian-golang: | |
name: Bake photon-tx2-nx-debian-golang | |
runs-on: | |
- self-hosted | |
- base-images | |
- ARM64 | |
timeout-minutes: 240 | |
needs: prepare-photon-tx2-nx-debian-golang | |
env: | |
LIBRARY: library/photon-tx2-nx-debian-golang.json | |
strategy: | |
fail-fast: false | |
matrix: | |
target: ${{ fromJSON(needs.prepare-photon-tx2-nx-debian-golang.outputs.bake-targets) }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Setup buildx | |
id: setup-buildx | |
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb | |
with: | |
driver-opts: network=host | |
install: true | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf | |
with: | |
platforms: all | |
image: tonistiigi/binfmt:qemu-v8.0.4-33 | |
if: contains(steps.setup-buildx.outputs.platforms, 'linux/arm64') == false | |
- name: Login to DockerHub | |
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 | |
if: inputs.no-push != true | |
with: | |
registry: docker.io | |
username: ${{ secrets.BALENAIMAGES_USER }} | |
password: ${{ secrets.BALENAIMAGES_TOKEN }} | |
- name: Docker bake | |
continue-on-error: false | |
id: docker_bake | |
uses: docker/bake-action@7a5dfed3550ca014665af2a27af8fc9d7284b9b3 | |
with: | |
workdir: balena-base-images | |
files: ${{ github.workspace }}/${{ env.LIBRARY }} | |
targets: ${{ matrix.target }} | |
push: ${{ inputs.no-push != true }} | |
provenance: false | |
prepare-photon-tx2-nx-debian-node: | |
name: Prepare photon-tx2-nx-debian-node | |
runs-on: ubuntu-latest | |
needs: bake-photon-tx2-nx-debian | |
outputs: | |
bake-targets: ${{ steps.bake-targets.outputs.matrix }} | |
env: | |
LIBRARY: library/photon-tx2-nx-debian-node.json | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Set matrix | |
id: bake-targets | |
run: | | |
set -x | |
targets="$(jq -cr '.group.default.targets' $LIBRARY)" | |
echo "matrix=$targets" >> $GITHUB_OUTPUT | |
bake-photon-tx2-nx-debian-node: | |
name: Bake photon-tx2-nx-debian-node | |
runs-on: | |
- self-hosted | |
- base-images | |
- ARM64 | |
timeout-minutes: 240 | |
needs: prepare-photon-tx2-nx-debian-node | |
env: | |
LIBRARY: library/photon-tx2-nx-debian-node.json | |
strategy: | |
fail-fast: false | |
matrix: | |
target: ${{ fromJSON(needs.prepare-photon-tx2-nx-debian-node.outputs.bake-targets) }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Setup buildx | |
id: setup-buildx | |
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb | |
with: | |
driver-opts: network=host | |
install: true | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf | |
with: | |
platforms: all | |
image: tonistiigi/binfmt:qemu-v8.0.4-33 | |
if: contains(steps.setup-buildx.outputs.platforms, 'linux/arm64') == false | |
- name: Login to DockerHub | |
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 | |
if: inputs.no-push != true | |
with: | |
registry: docker.io | |
username: ${{ secrets.BALENAIMAGES_USER }} | |
password: ${{ secrets.BALENAIMAGES_TOKEN }} | |
- name: Docker bake | |
continue-on-error: false | |
id: docker_bake | |
uses: docker/bake-action@7a5dfed3550ca014665af2a27af8fc9d7284b9b3 | |
with: | |
workdir: balena-base-images | |
files: ${{ github.workspace }}/${{ env.LIBRARY }} | |
targets: ${{ matrix.target }} | |
push: ${{ inputs.no-push != true }} | |
provenance: false | |
prepare-photon-tx2-nx-debian-openjdk: | |
name: Prepare photon-tx2-nx-debian-openjdk | |
runs-on: ubuntu-latest | |
needs: bake-photon-tx2-nx-debian | |
outputs: | |
bake-targets: ${{ steps.bake-targets.outputs.matrix }} | |
env: | |
LIBRARY: library/photon-tx2-nx-debian-openjdk.json | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Set matrix | |
id: bake-targets | |
run: | | |
set -x | |
targets="$(jq -cr '.group.default.targets' $LIBRARY)" | |
echo "matrix=$targets" >> $GITHUB_OUTPUT | |
bake-photon-tx2-nx-debian-openjdk: | |
name: Bake photon-tx2-nx-debian-openjdk | |
runs-on: | |
- self-hosted | |
- base-images | |
- ARM64 | |
timeout-minutes: 240 | |
needs: prepare-photon-tx2-nx-debian-openjdk | |
env: | |
LIBRARY: library/photon-tx2-nx-debian-openjdk.json | |
strategy: | |
fail-fast: false | |
matrix: | |
target: ${{ fromJSON(needs.prepare-photon-tx2-nx-debian-openjdk.outputs.bake-targets) }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Setup buildx | |
id: setup-buildx | |
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb | |
with: | |
driver-opts: network=host | |
install: true | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf | |
with: | |
platforms: all | |
image: tonistiigi/binfmt:qemu-v8.0.4-33 | |
if: contains(steps.setup-buildx.outputs.platforms, 'linux/arm64') == false | |
- name: Login to DockerHub | |
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 | |
if: inputs.no-push != true | |
with: | |
registry: docker.io | |
username: ${{ secrets.BALENAIMAGES_USER }} | |
password: ${{ secrets.BALENAIMAGES_TOKEN }} | |
- name: Docker bake | |
continue-on-error: false | |
id: docker_bake | |
uses: docker/bake-action@7a5dfed3550ca014665af2a27af8fc9d7284b9b3 | |
with: | |
workdir: balena-base-images | |
files: ${{ github.workspace }}/${{ env.LIBRARY }} | |
targets: ${{ matrix.target }} | |
push: ${{ inputs.no-push != true }} | |
provenance: false | |
prepare-photon-tx2-nx-debian-python: | |
name: Prepare photon-tx2-nx-debian-python | |
runs-on: ubuntu-latest | |
needs: bake-photon-tx2-nx-debian | |
outputs: | |
bake-targets: ${{ steps.bake-targets.outputs.matrix }} | |
env: | |
LIBRARY: library/photon-tx2-nx-debian-python.json | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Set matrix | |
id: bake-targets | |
run: | | |
set -x | |
targets="$(jq -cr '.group.default.targets' $LIBRARY)" | |
echo "matrix=$targets" >> $GITHUB_OUTPUT | |
bake-photon-tx2-nx-debian-python: | |
name: Bake photon-tx2-nx-debian-python | |
runs-on: | |
- self-hosted | |
- base-images | |
- ARM64 | |
timeout-minutes: 240 | |
needs: prepare-photon-tx2-nx-debian-python | |
env: | |
LIBRARY: library/photon-tx2-nx-debian-python.json | |
strategy: | |
fail-fast: false | |
matrix: | |
target: ${{ fromJSON(needs.prepare-photon-tx2-nx-debian-python.outputs.bake-targets) }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Setup buildx | |
id: setup-buildx | |
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb | |
with: | |
driver-opts: network=host | |
install: true | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf | |
with: | |
platforms: all | |
image: tonistiigi/binfmt:qemu-v8.0.4-33 | |
if: contains(steps.setup-buildx.outputs.platforms, 'linux/arm64') == false | |
- name: Login to DockerHub | |
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 | |
if: inputs.no-push != true | |
with: | |
registry: docker.io | |
username: ${{ secrets.BALENAIMAGES_USER }} | |
password: ${{ secrets.BALENAIMAGES_TOKEN }} | |
- name: Docker bake | |
continue-on-error: false | |
id: docker_bake | |
uses: docker/bake-action@7a5dfed3550ca014665af2a27af8fc9d7284b9b3 | |
with: | |
workdir: balena-base-images | |
files: ${{ github.workspace }}/${{ env.LIBRARY }} | |
targets: ${{ matrix.target }} | |
push: ${{ inputs.no-push != true }} | |
provenance: false | |
prepare-photon-tx2-nx-fedora-golang: | |
name: Prepare photon-tx2-nx-fedora-golang | |
runs-on: ubuntu-latest | |
needs: bake-photon-tx2-nx-fedora | |
outputs: | |
bake-targets: ${{ steps.bake-targets.outputs.matrix }} | |
env: | |
LIBRARY: library/photon-tx2-nx-fedora-golang.json | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Set matrix | |
id: bake-targets | |
run: | | |
set -x | |
targets="$(jq -cr '.group.default.targets' $LIBRARY)" | |
echo "matrix=$targets" >> $GITHUB_OUTPUT | |
bake-photon-tx2-nx-fedora-golang: | |
name: Bake photon-tx2-nx-fedora-golang | |
runs-on: | |
- self-hosted | |
- base-images | |
- ARM64 | |
timeout-minutes: 240 | |
needs: prepare-photon-tx2-nx-fedora-golang | |
env: | |
LIBRARY: library/photon-tx2-nx-fedora-golang.json | |
strategy: | |
fail-fast: false | |
matrix: | |
target: ${{ fromJSON(needs.prepare-photon-tx2-nx-fedora-golang.outputs.bake-targets) }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Setup buildx | |
id: setup-buildx | |
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb | |
with: | |
driver-opts: network=host | |
install: true | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf | |
with: | |
platforms: all | |
image: tonistiigi/binfmt:qemu-v8.0.4-33 | |
if: contains(steps.setup-buildx.outputs.platforms, 'linux/arm64') == false | |
- name: Login to DockerHub | |
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 | |
if: inputs.no-push != true | |
with: | |
registry: docker.io | |
username: ${{ secrets.BALENAIMAGES_USER }} | |
password: ${{ secrets.BALENAIMAGES_TOKEN }} | |
- name: Docker bake | |
continue-on-error: false | |
id: docker_bake | |
uses: docker/bake-action@7a5dfed3550ca014665af2a27af8fc9d7284b9b3 | |
with: | |
workdir: balena-base-images | |
files: ${{ github.workspace }}/${{ env.LIBRARY }} | |
targets: ${{ matrix.target }} | |
push: ${{ inputs.no-push != true }} | |
provenance: false | |
prepare-photon-tx2-nx-fedora-node: | |
name: Prepare photon-tx2-nx-fedora-node | |
runs-on: ubuntu-latest | |
needs: bake-photon-tx2-nx-fedora | |
outputs: | |
bake-targets: ${{ steps.bake-targets.outputs.matrix }} | |
env: | |
LIBRARY: library/photon-tx2-nx-fedora-node.json | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Set matrix | |
id: bake-targets | |
run: | | |
set -x | |
targets="$(jq -cr '.group.default.targets' $LIBRARY)" | |
echo "matrix=$targets" >> $GITHUB_OUTPUT | |
bake-photon-tx2-nx-fedora-node: | |
name: Bake photon-tx2-nx-fedora-node | |
runs-on: | |
- self-hosted | |
- base-images | |
- ARM64 | |
timeout-minutes: 240 | |
needs: prepare-photon-tx2-nx-fedora-node | |
env: | |
LIBRARY: library/photon-tx2-nx-fedora-node.json | |
strategy: | |
fail-fast: false | |
matrix: | |
target: ${{ fromJSON(needs.prepare-photon-tx2-nx-fedora-node.outputs.bake-targets) }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Setup buildx | |
id: setup-buildx | |
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb | |
with: | |
driver-opts: network=host | |
install: true | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf | |
with: | |
platforms: all | |
image: tonistiigi/binfmt:qemu-v8.0.4-33 | |
if: contains(steps.setup-buildx.outputs.platforms, 'linux/arm64') == false | |
- name: Login to DockerHub | |
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 | |
if: inputs.no-push != true | |
with: | |
registry: docker.io | |
username: ${{ secrets.BALENAIMAGES_USER }} | |
password: ${{ secrets.BALENAIMAGES_TOKEN }} | |
- name: Docker bake | |
continue-on-error: false | |
id: docker_bake | |
uses: docker/bake-action@7a5dfed3550ca014665af2a27af8fc9d7284b9b3 | |
with: | |
workdir: balena-base-images | |
files: ${{ github.workspace }}/${{ env.LIBRARY }} | |
targets: ${{ matrix.target }} | |
push: ${{ inputs.no-push != true }} | |
provenance: false | |
prepare-photon-tx2-nx-fedora-python: | |
name: Prepare photon-tx2-nx-fedora-python | |
runs-on: ubuntu-latest | |
needs: bake-photon-tx2-nx-fedora | |
outputs: | |
bake-targets: ${{ steps.bake-targets.outputs.matrix }} | |
env: | |
LIBRARY: library/photon-tx2-nx-fedora-python.json | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Set matrix | |
id: bake-targets | |
run: | | |
set -x | |
targets="$(jq -cr '.group.default.targets' $LIBRARY)" | |
echo "matrix=$targets" >> $GITHUB_OUTPUT | |
bake-photon-tx2-nx-fedora-python: | |
name: Bake photon-tx2-nx-fedora-python | |
runs-on: | |
- self-hosted | |
- base-images | |
- ARM64 | |
timeout-minutes: 240 | |
needs: prepare-photon-tx2-nx-fedora-python | |
env: | |
LIBRARY: library/photon-tx2-nx-fedora-python.json | |
strategy: | |
fail-fast: false | |
matrix: | |
target: ${{ fromJSON(needs.prepare-photon-tx2-nx-fedora-python.outputs.bake-targets) }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Setup buildx | |
id: setup-buildx | |
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb | |
with: | |
driver-opts: network=host | |
install: true | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf | |
with: | |
platforms: all | |
image: tonistiigi/binfmt:qemu-v8.0.4-33 | |
if: contains(steps.setup-buildx.outputs.platforms, 'linux/arm64') == false | |
- name: Login to DockerHub | |
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 | |
if: inputs.no-push != true | |
with: | |
registry: docker.io | |
username: ${{ secrets.BALENAIMAGES_USER }} | |
password: ${{ secrets.BALENAIMAGES_TOKEN }} | |
- name: Docker bake | |
continue-on-error: false | |
id: docker_bake | |
uses: docker/bake-action@7a5dfed3550ca014665af2a27af8fc9d7284b9b3 | |
with: | |
workdir: balena-base-images | |
files: ${{ github.workspace }}/${{ env.LIBRARY }} | |
targets: ${{ matrix.target }} | |
push: ${{ inputs.no-push != true }} | |
provenance: false | |
prepare-photon-tx2-nx-ubuntu-golang: | |
name: Prepare photon-tx2-nx-ubuntu-golang | |
runs-on: ubuntu-latest | |
needs: bake-photon-tx2-nx-ubuntu | |
outputs: | |
bake-targets: ${{ steps.bake-targets.outputs.matrix }} | |
env: | |
LIBRARY: library/photon-tx2-nx-ubuntu-golang.json | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Set matrix | |
id: bake-targets | |
run: | | |
set -x | |
targets="$(jq -cr '.group.default.targets' $LIBRARY)" | |
echo "matrix=$targets" >> $GITHUB_OUTPUT | |
bake-photon-tx2-nx-ubuntu-golang: | |
name: Bake photon-tx2-nx-ubuntu-golang | |
runs-on: | |
- self-hosted | |
- base-images | |
- ARM64 | |
timeout-minutes: 240 | |
needs: prepare-photon-tx2-nx-ubuntu-golang | |
env: | |
LIBRARY: library/photon-tx2-nx-ubuntu-golang.json | |
strategy: | |
fail-fast: false | |
matrix: | |
target: ${{ fromJSON(needs.prepare-photon-tx2-nx-ubuntu-golang.outputs.bake-targets) }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Setup buildx | |
id: setup-buildx | |
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb | |
with: | |
driver-opts: network=host | |
install: true | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf | |
with: | |
platforms: all | |
image: tonistiigi/binfmt:qemu-v8.0.4-33 | |
if: contains(steps.setup-buildx.outputs.platforms, 'linux/arm64') == false | |
- name: Login to DockerHub | |
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 | |
if: inputs.no-push != true | |
with: | |
registry: docker.io | |
username: ${{ secrets.BALENAIMAGES_USER }} | |
password: ${{ secrets.BALENAIMAGES_TOKEN }} | |
- name: Docker bake | |
continue-on-error: false | |
id: docker_bake | |
uses: docker/bake-action@7a5dfed3550ca014665af2a27af8fc9d7284b9b3 | |
with: | |
workdir: balena-base-images | |
files: ${{ github.workspace }}/${{ env.LIBRARY }} | |
targets: ${{ matrix.target }} | |
push: ${{ inputs.no-push != true }} | |
provenance: false | |
prepare-photon-tx2-nx-ubuntu-node: | |
name: Prepare photon-tx2-nx-ubuntu-node | |
runs-on: ubuntu-latest | |
needs: bake-photon-tx2-nx-ubuntu | |
outputs: | |
bake-targets: ${{ steps.bake-targets.outputs.matrix }} | |
env: | |
LIBRARY: library/photon-tx2-nx-ubuntu-node.json | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Set matrix | |
id: bake-targets | |
run: | | |
set -x | |
targets="$(jq -cr '.group.default.targets' $LIBRARY)" | |
echo "matrix=$targets" >> $GITHUB_OUTPUT | |
bake-photon-tx2-nx-ubuntu-node: | |
name: Bake photon-tx2-nx-ubuntu-node | |
runs-on: | |
- self-hosted | |
- base-images | |
- ARM64 | |
timeout-minutes: 240 | |
needs: prepare-photon-tx2-nx-ubuntu-node | |
env: | |
LIBRARY: library/photon-tx2-nx-ubuntu-node.json | |
strategy: | |
fail-fast: false | |
matrix: | |
target: ${{ fromJSON(needs.prepare-photon-tx2-nx-ubuntu-node.outputs.bake-targets) }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Setup buildx | |
id: setup-buildx | |
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb | |
with: | |
driver-opts: network=host | |
install: true | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf | |
with: | |
platforms: all | |
image: tonistiigi/binfmt:qemu-v8.0.4-33 | |
if: contains(steps.setup-buildx.outputs.platforms, 'linux/arm64') == false | |
- name: Login to DockerHub | |
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 | |
if: inputs.no-push != true | |
with: | |
registry: docker.io | |
username: ${{ secrets.BALENAIMAGES_USER }} | |
password: ${{ secrets.BALENAIMAGES_TOKEN }} | |
- name: Docker bake | |
continue-on-error: false | |
id: docker_bake | |
uses: docker/bake-action@7a5dfed3550ca014665af2a27af8fc9d7284b9b3 | |
with: | |
workdir: balena-base-images | |
files: ${{ github.workspace }}/${{ env.LIBRARY }} | |
targets: ${{ matrix.target }} | |
push: ${{ inputs.no-push != true }} | |
provenance: false | |
prepare-photon-tx2-nx-ubuntu-python: | |
name: Prepare photon-tx2-nx-ubuntu-python | |
runs-on: ubuntu-latest | |
needs: bake-photon-tx2-nx-ubuntu | |
outputs: | |
bake-targets: ${{ steps.bake-targets.outputs.matrix }} | |
env: | |
LIBRARY: library/photon-tx2-nx-ubuntu-python.json | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Set matrix | |
id: bake-targets | |
run: | | |
set -x | |
targets="$(jq -cr '.group.default.targets' $LIBRARY)" | |
echo "matrix=$targets" >> $GITHUB_OUTPUT | |
bake-photon-tx2-nx-ubuntu-python: | |
name: Bake photon-tx2-nx-ubuntu-python | |
runs-on: | |
- self-hosted | |
- base-images | |
- ARM64 | |
timeout-minutes: 240 | |
needs: prepare-photon-tx2-nx-ubuntu-python | |
env: | |
LIBRARY: library/photon-tx2-nx-ubuntu-python.json | |
strategy: | |
fail-fast: false | |
matrix: | |
target: ${{ fromJSON(needs.prepare-photon-tx2-nx-ubuntu-python.outputs.bake-targets) }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Setup buildx | |
id: setup-buildx | |
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb | |
with: | |
driver-opts: network=host | |
install: true | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf | |
with: | |
platforms: all | |
image: tonistiigi/binfmt:qemu-v8.0.4-33 | |
if: contains(steps.setup-buildx.outputs.platforms, 'linux/arm64') == false | |
- name: Login to DockerHub | |
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 | |
if: inputs.no-push != true | |
with: | |
registry: docker.io | |
username: ${{ secrets.BALENAIMAGES_USER }} | |
password: ${{ secrets.BALENAIMAGES_TOKEN }} | |
- name: Docker bake | |
continue-on-error: false | |
id: docker_bake | |
uses: docker/bake-action@7a5dfed3550ca014665af2a27af8fc9d7284b9b3 | |
with: | |
workdir: balena-base-images | |
files: ${{ github.workspace }}/${{ env.LIBRARY }} | |
targets: ${{ matrix.target }} | |
push: ${{ inputs.no-push != true }} | |
provenance: false | |
prepare-photon-tx2-nx-ubuntu-openjdk: | |
name: Prepare photon-tx2-nx-ubuntu-openjdk | |
runs-on: ubuntu-latest | |
needs: bake-photon-tx2-nx-ubuntu | |
outputs: | |
bake-targets: ${{ steps.bake-targets.outputs.matrix }} | |
env: | |
LIBRARY: library/photon-tx2-nx-ubuntu-openjdk.json | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Set matrix | |
id: bake-targets | |
run: | | |
set -x | |
targets="$(jq -cr '.group.default.targets' $LIBRARY)" | |
echo "matrix=$targets" >> $GITHUB_OUTPUT | |
bake-photon-tx2-nx-ubuntu-openjdk: | |
name: Bake photon-tx2-nx-ubuntu-openjdk | |
runs-on: | |
- self-hosted | |
- base-images | |
- ARM64 | |
timeout-minutes: 240 | |
needs: prepare-photon-tx2-nx-ubuntu-openjdk | |
env: | |
LIBRARY: library/photon-tx2-nx-ubuntu-openjdk.json | |
strategy: | |
fail-fast: false | |
matrix: | |
target: ${{ fromJSON(needs.prepare-photon-tx2-nx-ubuntu-openjdk.outputs.bake-targets) }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Setup buildx | |
id: setup-buildx | |
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb | |
with: | |
driver-opts: network=host | |
install: true | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf | |
with: | |
platforms: all | |
image: tonistiigi/binfmt:qemu-v8.0.4-33 | |
if: contains(steps.setup-buildx.outputs.platforms, 'linux/arm64') == false | |
- name: Login to DockerHub | |
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 | |
if: inputs.no-push != true | |
with: | |
registry: docker.io | |
username: ${{ secrets.BALENAIMAGES_USER }} | |
password: ${{ secrets.BALENAIMAGES_TOKEN }} | |
- name: Docker bake | |
continue-on-error: false | |
id: docker_bake | |
uses: docker/bake-action@7a5dfed3550ca014665af2a27af8fc9d7284b9b3 | |
with: | |
workdir: balena-base-images | |
files: ${{ github.workspace }}/${{ env.LIBRARY }} | |
targets: ${{ matrix.target }} | |
push: ${{ inputs.no-push != true }} | |
provenance: false | |
prepare-photon-tx2-nx-alpine: | |
name: Prepare photon-tx2-nx-alpine | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name != 'workflow_run' || (github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.conclusion == 'failure') }} | |
outputs: | |
bake-targets: ${{ steps.bake-targets.outputs.matrix }} | |
env: | |
LIBRARY: library/photon-tx2-nx-alpine.json | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Set matrix | |
id: bake-targets | |
run: | | |
set -x | |
targets="$(jq -cr '.group.default.targets' $LIBRARY)" | |
echo "matrix=$targets" >> $GITHUB_OUTPUT | |
bake-photon-tx2-nx-alpine: | |
name: Bake photon-tx2-nx-alpine | |
runs-on: | |
- self-hosted | |
- base-images | |
- ARM64 | |
timeout-minutes: 240 | |
needs: prepare-photon-tx2-nx-alpine | |
env: | |
LIBRARY: library/photon-tx2-nx-alpine.json | |
strategy: | |
fail-fast: false | |
matrix: | |
target: ${{ fromJSON(needs.prepare-photon-tx2-nx-alpine.outputs.bake-targets) }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Setup buildx | |
id: setup-buildx | |
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb | |
with: | |
driver-opts: network=host | |
install: true | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf | |
with: | |
platforms: all | |
image: tonistiigi/binfmt:qemu-v8.0.4-33 | |
if: contains(steps.setup-buildx.outputs.platforms, 'linux/arm64') == false | |
- name: Login to DockerHub | |
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 | |
if: inputs.no-push != true | |
with: | |
registry: docker.io | |
username: ${{ secrets.BALENAIMAGES_USER }} | |
password: ${{ secrets.BALENAIMAGES_TOKEN }} | |
- name: Docker bake | |
continue-on-error: false | |
id: docker_bake | |
uses: docker/bake-action@7a5dfed3550ca014665af2a27af8fc9d7284b9b3 | |
with: | |
workdir: balena-base-images | |
files: ${{ github.workspace }}/${{ env.LIBRARY }} | |
targets: ${{ matrix.target }} | |
push: ${{ inputs.no-push != true }} | |
provenance: false | |
prepare-photon-tx2-nx-debian: | |
name: Prepare photon-tx2-nx-debian | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name != 'workflow_run' || (github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.conclusion == 'failure') }} | |
outputs: | |
bake-targets: ${{ steps.bake-targets.outputs.matrix }} | |
env: | |
LIBRARY: library/photon-tx2-nx-debian.json | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Set matrix | |
id: bake-targets | |
run: | | |
set -x | |
targets="$(jq -cr '.group.default.targets' $LIBRARY)" | |
echo "matrix=$targets" >> $GITHUB_OUTPUT | |
bake-photon-tx2-nx-debian: | |
name: Bake photon-tx2-nx-debian | |
runs-on: | |
- self-hosted | |
- base-images | |
- ARM64 | |
timeout-minutes: 240 | |
needs: prepare-photon-tx2-nx-debian | |
env: | |
LIBRARY: library/photon-tx2-nx-debian.json | |
strategy: | |
fail-fast: false | |
matrix: | |
target: ${{ fromJSON(needs.prepare-photon-tx2-nx-debian.outputs.bake-targets) }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Setup buildx | |
id: setup-buildx | |
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb | |
with: | |
driver-opts: network=host | |
install: true | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf | |
with: | |
platforms: all | |
image: tonistiigi/binfmt:qemu-v8.0.4-33 | |
if: contains(steps.setup-buildx.outputs.platforms, 'linux/arm64') == false | |
- name: Login to DockerHub | |
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 | |
if: inputs.no-push != true | |
with: | |
registry: docker.io | |
username: ${{ secrets.BALENAIMAGES_USER }} | |
password: ${{ secrets.BALENAIMAGES_TOKEN }} | |
- name: Docker bake | |
continue-on-error: false | |
id: docker_bake | |
uses: docker/bake-action@7a5dfed3550ca014665af2a27af8fc9d7284b9b3 | |
with: | |
workdir: balena-base-images | |
files: ${{ github.workspace }}/${{ env.LIBRARY }} | |
targets: ${{ matrix.target }} | |
push: ${{ inputs.no-push != true }} | |
provenance: false | |
prepare-photon-tx2-nx-fedora: | |
name: Prepare photon-tx2-nx-fedora | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name != 'workflow_run' || (github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.conclusion == 'failure') }} | |
outputs: | |
bake-targets: ${{ steps.bake-targets.outputs.matrix }} | |
env: | |
LIBRARY: library/photon-tx2-nx-fedora.json | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Set matrix | |
id: bake-targets | |
run: | | |
set -x | |
targets="$(jq -cr '.group.default.targets' $LIBRARY)" | |
echo "matrix=$targets" >> $GITHUB_OUTPUT | |
bake-photon-tx2-nx-fedora: | |
name: Bake photon-tx2-nx-fedora | |
runs-on: | |
- self-hosted | |
- base-images | |
- ARM64 | |
timeout-minutes: 240 | |
needs: prepare-photon-tx2-nx-fedora | |
env: | |
LIBRARY: library/photon-tx2-nx-fedora.json | |
strategy: | |
fail-fast: false | |
matrix: | |
target: ${{ fromJSON(needs.prepare-photon-tx2-nx-fedora.outputs.bake-targets) }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Setup buildx | |
id: setup-buildx | |
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb | |
with: | |
driver-opts: network=host | |
install: true | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf | |
with: | |
platforms: all | |
image: tonistiigi/binfmt:qemu-v8.0.4-33 | |
if: contains(steps.setup-buildx.outputs.platforms, 'linux/arm64') == false | |
- name: Login to DockerHub | |
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 | |
if: inputs.no-push != true | |
with: | |
registry: docker.io | |
username: ${{ secrets.BALENAIMAGES_USER }} | |
password: ${{ secrets.BALENAIMAGES_TOKEN }} | |
- name: Docker bake | |
continue-on-error: false | |
id: docker_bake | |
uses: docker/bake-action@7a5dfed3550ca014665af2a27af8fc9d7284b9b3 | |
with: | |
workdir: balena-base-images | |
files: ${{ github.workspace }}/${{ env.LIBRARY }} | |
targets: ${{ matrix.target }} | |
push: ${{ inputs.no-push != true }} | |
provenance: false | |
prepare-photon-tx2-nx-ubuntu: | |
name: Prepare photon-tx2-nx-ubuntu | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name != 'workflow_run' || (github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.conclusion == 'failure') }} | |
outputs: | |
bake-targets: ${{ steps.bake-targets.outputs.matrix }} | |
env: | |
LIBRARY: library/photon-tx2-nx-ubuntu.json | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Set matrix | |
id: bake-targets | |
run: | | |
set -x | |
targets="$(jq -cr '.group.default.targets' $LIBRARY)" | |
echo "matrix=$targets" >> $GITHUB_OUTPUT | |
bake-photon-tx2-nx-ubuntu: | |
name: Bake photon-tx2-nx-ubuntu | |
runs-on: | |
- self-hosted | |
- base-images | |
- ARM64 | |
timeout-minutes: 240 | |
needs: prepare-photon-tx2-nx-ubuntu | |
env: | |
LIBRARY: library/photon-tx2-nx-ubuntu.json | |
strategy: | |
fail-fast: false | |
matrix: | |
target: ${{ fromJSON(needs.prepare-photon-tx2-nx-ubuntu.outputs.bake-targets) }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b | |
with: | |
fetch-depth: 1 | |
- name: Setup buildx | |
id: setup-buildx | |
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb | |
with: | |
driver-opts: network=host | |
install: true | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf | |
with: | |
platforms: all | |
image: tonistiigi/binfmt:qemu-v8.0.4-33 | |
if: contains(steps.setup-buildx.outputs.platforms, 'linux/arm64') == false | |
- name: Login to DockerHub | |
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 | |
if: inputs.no-push != true | |
with: | |
registry: docker.io | |
username: ${{ secrets.BALENAIMAGES_USER }} | |
password: ${{ secrets.BALENAIMAGES_TOKEN }} | |
- name: Docker bake | |
continue-on-error: false | |
id: docker_bake | |
uses: docker/bake-action@7a5dfed3550ca014665af2a27af8fc9d7284b9b3 | |
with: | |
workdir: balena-base-images | |
files: ${{ github.workspace }}/${{ env.LIBRARY }} | |
targets: ${{ matrix.target }} | |
push: ${{ inputs.no-push != true }} | |
provenance: false |