-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (45 loc) · 1.27 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
name: Publish All Channels
on:
push:
branches:
- main
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
publish-channel:
strategy:
matrix:
channel:
- tag: "5.5"
file: "sle-micro-5-5.json"
flavor: "sle-micro"
- tag: "5.5-base"
file: "sle-micro-base-5-5.json"
flavor: "sle-micro"
- tag: "5.5-kvm"
file: "sle-micro-kvm-5-5.json"
flavor: "sle-micro"
- tag: "5.5-rt"
file: "sle-micro-rt-5-5.json"
flavor: "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.flavor }}:${{ matrix.channel.tag }}