Skip to content

Commit edc4b38

Browse files
committed
ci(wip): docker-bake ubuntu images
Signed-off-by: Yi Huang <yi@secondstate.io>
1 parent 922731d commit edc4b38

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: docker
3+
4+
on:
5+
pull_request:
6+
branches: [main]
7+
paths:
8+
- 'docker-bake.ubuntu.hcl'
9+
- 'Dockerfile.ubuntu-*'
10+
- 'scripts/**'
11+
12+
permissions: {}
13+
14+
jobs:
15+
bake:
16+
name: Bake Ubuntu images
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- if: ${{ github.event_name != 'pull_request' }}
21+
name: Login to DockerHub
22+
uses: docker/login-action@v3
23+
with:
24+
username: ${{ secrets.DOCKER_USERNAME }}
25+
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
26+
27+
- name: Set up Docker Buildx
28+
uses: docker/setup-buildx-action@v3
29+
30+
- name: Bake and Push
31+
uses: docker/bake-action@v6
32+
with:
33+
push: ${{ github.event_name != 'pull_request' }}
34+
files: docker-bake.ubuntu.hcl
35+
targets: |
36+
base-2404-clang

0 commit comments

Comments
 (0)