-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (53 loc) · 1.43 KB
/
publish-all-channels.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
name: Publish All Channels
on:
workflow_dispatch:
workflow_run:
workflows: [Refresh Channels]
types:
- completed
push:
branches:
- main
paths:
- 'channels/**.json'
- 'Dockerfile'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
publish-channel:
strategy:
matrix:
channel:
- tag: "5.5"
file: "sle-micro-5-5.json"
baseOS: "sle-micro"
- tag: "5.5-base"
file: "sle-micro-base-5-5.json"
baseOS: "sle-micro"
- tag: "5.5-kvm"
file: "sle-micro-kvm-5-5.json"
baseOS: "sle-micro"
- tag: "5.5-rt"
file: "sle-micro-rt-5-5.json"
baseOS: "sle-micro"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
build-args: |
CHANNEL_JSON_FILE=${{ matrix.channel.file }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/${{ matrix.channel.baseOS }}:${{ matrix.channel.tag }}