-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.1 KB
/
Copy pathbuild-ubuntu-init.yml
File metadata and controls
42 lines (40 loc) · 1.1 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
---
name: Build Ubuntu system images
on:
push:
branches:
- main
paths:
- 'ubuntu/*-init/**'
- '!ubuntu/**/README.md'
- '.github/workflows/build-ubuntu-init.yml'
workflow_dispatch:
schedule:
- cron: '35 4 * * 6' # Every Saturday at 04:35am
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
security-events: write
strategy:
matrix:
version: ['26.04-init','24.04-init']
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.2
- name: Extract Ubuntu release version
id: version
shell: bash
run: echo "release=${VERSION%-init}" >> $GITHUB_OUTPUT
env:
VERSION: ${{ matrix.version }}
- name: Build and push image
uses: ./.github/actions/build-image
with:
name: ubuntu
version: ${{ matrix.version }}
description: Custom Ubuntu ${{ steps.version.outputs.release }} system container image
build-context: ./ubuntu/${{ matrix.version }}
token: ${{ secrets.GITHUB_TOKEN }}