Skip to content

Commit 3207516

Browse files
committed
Test workflow
1 parent ba220c7 commit 3207516

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/docker.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build docker images
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: 'tag to build (develop or v...)'
8+
required: true
9+
type: string
10+
platforms:
11+
description: 'platform(s) (all, linux/amd64, linux/arm64)'
12+
required: true
13+
type: string
14+
targets:
15+
description: 'target(s) from bakefile (all, minimal, icpc, full, githubci)'
16+
required: true
17+
type: string
18+
19+
jobs:
20+
push-to-docker:
21+
name: Build (and later, push) docker image(s) to docker hub
22+
runs-on: ubuntu-latest
23+
permissions:
24+
packages: write
25+
contents: read
26+
attestations: write
27+
id-token: write
28+
env:
29+
TAG: ${{ inputs.tag }}
30+
PLATFORM: ${{ inputs.platform }}
31+
steps:
32+
- name: Check out the repo
33+
uses: actions/checkout@v4
34+
with:
35+
fetch-depth: 0 # We need full history for setuptools_scm to figure out version
36+
37+
- name: Set up QEMU
38+
uses: docker/setup-qemu-action@v3
39+
40+
- name: Set up Docker Buildx
41+
uses: docker/setup-buildx-action@v3
42+
43+
- name: Build (and later, push)
44+
uses: docker/bake-action@v6
45+
with:
46+
targets: ${{ inputs.targets }}

0 commit comments

Comments
 (0)