-
Notifications
You must be signed in to change notification settings - Fork 3
64 lines (52 loc) · 1.46 KB
/
test.yaml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
name: Test
'on': push
env:
DOCKER_IMAGE: "cristiklein/stateless-workstation-config/ubuntu-desktop"
UBUNTU_VERSIONS: '["24.04", "24.10"]'
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
ubuntu_version: ${{ fromJson(env.UBUNTU_VERSIONS) }}
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and export
uses: docker/build-push-action@v6
with:
context: .
tags: "${DOCKER_IMAGE}:${UBUNTU_VERSION}"
cache-from: type=gha
cache-to: type=gha,mode=max
outputs: type=docker,dest=/tmp/ubuntu-desktop-${UBUNTU_VERSION}.tar
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: "${DOCKER_IMAGE}:${UBUNTU_VERSION}"
path: /tmp/ubuntu-desktop-${UBUNTU_VERSION}.tar
test:
runs-on: ubuntu-24.04
strategy:
matrix:
role:
- ''
- cklein.cloud_tools
- cklein.cncf
- cklein.git
- cklein.go
- cklein.security
- cklein.shell
ubuntu_version: $${ fromJson(env.UBUNTU_VERSIONS} }}
env:
ROLE: ${{ matrix.ROLE }}
UBUNTU_VERSION: ${{ matrix.UBUNTU_VERSION }}
steps:
- uses: actions/checkout@v4
- name: Generate Site YAML for Role
run: |
./scripts/generate-site-yml-for-role.sh
cat site.yml
- name: Test Role
run: ./test.sh