-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.07 KB
/
docker-ubuntu.yml
File metadata and controls
46 lines (39 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
name: ubuntu
on:
pull_request:
branches: [main]
paths:
- 'docker-bake.ubuntu.hcl'
- 'Dockerfile.ubuntu*'
- 'scripts/**'
permissions: {}
jobs:
bake:
strategy:
fail-fast: false
matrix:
include:
- arch: x86_64
targets: focal,jammy,noble,cuda
host_runner: ubuntu-latest
- arch: aarch64
targets: aarch64
host_runner: ubuntu-24.04-arm
name: Ubuntu (${{ matrix.arch }})
runs-on: ${{ matrix.host_runner }}
steps:
- if: ${{ github.event_name != 'pull_request' }}
name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Bake and Push
uses: docker/bake-action@v6
with:
push: ${{ github.event_name != 'pull_request' }}
files: docker-bake.ubuntu.hcl
targets: ${{ matrix.targets }}