Skip to content

Commit

Permalink
Implement PoC (#1)
Browse files Browse the repository at this point in the history
* Implement PoC

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
  • Loading branch information
anmazzotti authored May 29, 2024
1 parent fce3c88 commit 1ade37e
Show file tree
Hide file tree
Showing 8 changed files with 890 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/publish-all-channels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
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"
- tag: "5.5-base"
file: "sle-micro-base-5-5.json"
- tag: "5.5-kvm"
file: "sle-micro-kvm-5-5.json"
- tag: "5.5-rt"
file: "sle-micro-rt-5-5.json"
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.tag }}
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM busybox

ARG CHANNEL_JSON_FILE

COPY channels/$CHANNEL_JSON_FILE /channel.json

ENTRYPOINT ["cp"]
CMD ["/channel.json", "/data/output"]
340 changes: 340 additions & 0 deletions channels/sle-micro-5-5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,340 @@
[
{
"metadata": {
"name": "v2.0.2"
},
"spec": {
"version": "v2.0.2",
"type": "container",
"metadata": {
"upgradeImage": ":2.0.2",
"displayName": "SLE Micro 5.5 OS"
}
}
},
{
"metadata": {
"name": "v2.0.2-4.2.102"
},
"spec": {
"version": "v2.0.2-4.2.102",
"type": "container",
"metadata": {
"upgradeImage": ":2.0.2-4.2.102",
"displayName": "SLE Micro 5.5 OS"
}
}
},
{
"metadata": {
"name": "v2.0.2-4.2.105"
},
"spec": {
"version": "v2.0.2-4.2.105",
"type": "container",
"metadata": {
"upgradeImage": ":2.0.2-4.2.105",
"displayName": "SLE Micro 5.5 OS"
}
}
},
{
"metadata": {
"name": "v2.0.2-4.2.107"
},
"spec": {
"version": "v2.0.2-4.2.107",
"type": "container",
"metadata": {
"upgradeImage": ":2.0.2-4.2.107",
"displayName": "SLE Micro 5.5 OS"
}
}
},
{
"metadata": {
"name": "v2.0.2-4.2.109"
},
"spec": {
"version": "v2.0.2-4.2.109",
"type": "container",
"metadata": {
"upgradeImage": ":2.0.2-4.2.109",
"displayName": "SLE Micro 5.5 OS"
}
}
},
{
"metadata": {
"name": "v2.0.2-4.2.111"
},
"spec": {
"version": "v2.0.2-4.2.111",
"type": "container",
"metadata": {
"upgradeImage": ":2.0.2-4.2.111",
"displayName": "SLE Micro 5.5 OS"
}
}
},
{
"metadata": {
"name": "v2.0.2-4.2.20"
},
"spec": {
"version": "v2.0.2-4.2.20",
"type": "container",
"metadata": {
"upgradeImage": ":2.0.2-4.2.20",
"displayName": "SLE Micro 5.5 OS"
}
}
},
{
"metadata": {
"name": "v2.0.2-4.2.70"
},
"spec": {
"version": "v2.0.2-4.2.70",
"type": "container",
"metadata": {
"upgradeImage": ":2.0.2-4.2.70",
"displayName": "SLE Micro 5.5 OS"
}
}
},
{
"metadata": {
"name": "v2.0.2-4.2.85"
},
"spec": {
"version": "v2.0.2-4.2.85",
"type": "container",
"metadata": {
"upgradeImage": ":2.0.2-4.2.85",
"displayName": "SLE Micro 5.5 OS"
}
}
},
{
"metadata": {
"name": "v2.0.2-4.2.87"
},
"spec": {
"version": "v2.0.2-4.2.87",
"type": "container",
"metadata": {
"upgradeImage": ":2.0.2-4.2.87",
"displayName": "SLE Micro 5.5 OS"
}
}
},
{
"metadata": {
"name": "v2.0.2-4.2.89"
},
"spec": {
"version": "v2.0.2-4.2.89",
"type": "container",
"metadata": {
"upgradeImage": ":2.0.2-4.2.89",
"displayName": "SLE Micro 5.5 OS"
}
}
},
{
"metadata": {
"name": "v2.0.2-4.2.91"
},
"spec": {
"version": "v2.0.2-4.2.91",
"type": "container",
"metadata": {
"upgradeImage": ":2.0.2-4.2.91",
"displayName": "SLE Micro 5.5 OS"
}
}
},
{
"metadata": {
"name": "v2.0.2-4.2.93"
},
"spec": {
"version": "v2.0.2-4.2.93",
"type": "container",
"metadata": {
"upgradeImage": ":2.0.2-4.2.93",
"displayName": "SLE Micro 5.5 OS"
}
}
},
{
"metadata": {
"name": "v2.0.2-4.2.94"
},
"spec": {
"version": "v2.0.2-4.2.94",
"type": "container",
"metadata": {
"upgradeImage": ":2.0.2-4.2.94",
"displayName": "SLE Micro 5.5 OS"
}
}
},
{
"metadata": {
"name": "v2.0.2-4.2.96"
},
"spec": {
"version": "v2.0.2-4.2.96",
"type": "container",
"metadata": {
"upgradeImage": ":2.0.2-4.2.96",
"displayName": "SLE Micro 5.5 OS"
}
}
},
{
"metadata": {
"name": "v2.0.2-4.2.97"
},
"spec": {
"version": "v2.0.2-4.2.97",
"type": "container",
"metadata": {
"upgradeImage": ":2.0.2-4.2.97",
"displayName": "SLE Micro 5.5 OS"
}
}
},
{
"metadata": {
"name": "v2.0.2-4.2.99"
},
"spec": {
"version": "v2.0.2-4.2.99",
"type": "container",
"metadata": {
"upgradeImage": ":2.0.2-4.2.99",
"displayName": "SLE Micro 5.5 OS"
}
}
},
{
"metadata": {
"name": "v2.0.4"
},
"spec": {
"version": "v2.0.4",
"type": "container",
"metadata": {
"upgradeImage": ":2.0.4",
"displayName": "SLE Micro 5.5 OS"
}
}
},
{
"metadata": {
"name": "v2.0.4-5.5.2"
},
"spec": {
"version": "v2.0.4-5.5.2",
"type": "container",
"metadata": {
"upgradeImage": ":2.0.4-5.5.2",
"displayName": "SLE Micro 5.5 OS"
}
}
},
{
"metadata": {
"name": "v2.0.2"
},
"spec": {
"version": "v2.0.2",
"type": "iso",
"metadata": {
"uri": ":2.0.2",
"displayName": "SLE Micro 5.5 ISO"
}
}
},
{
"metadata": {
"name": "v2.0.2-4.2.128"
},
"spec": {
"version": "v2.0.2-4.2.128",
"type": "iso",
"metadata": {
"uri": ":2.0.2-4.2.128",
"displayName": "SLE Micro 5.5 ISO"
}
}
},
{
"metadata": {
"name": "v2.0.2-4.2.27"
},
"spec": {
"version": "v2.0.2-4.2.27",
"type": "iso",
"metadata": {
"uri": ":2.0.2-4.2.27",
"displayName": "SLE Micro 5.5 ISO"
}
}
},
{
"metadata": {
"name": "v2.0.2-4.2.97"
},
"spec": {
"version": "v2.0.2-4.2.97",
"type": "iso",
"metadata": {
"uri": ":2.0.2-4.2.97",
"displayName": "SLE Micro 5.5 ISO"
}
}
},
{
"metadata": {
"name": "v2.0.4"
},
"spec": {
"version": "v2.0.4",
"type": "iso",
"metadata": {
"uri": ":2.0.4",
"displayName": "SLE Micro 5.5 ISO"
}
}
},
{
"metadata": {
"name": "v2.0.4-5.5.3"
},
"spec": {
"version": "v2.0.4-5.5.3",
"type": "iso",
"metadata": {
"uri": ":2.0.4-5.5.3",
"displayName": "SLE Micro 5.5 ISO"
}
}
},
{
"metadata": {
"name": "v2.0.4-5.5.6"
},
"spec": {
"version": "v2.0.4-5.5.6",
"type": "iso",
"metadata": {
"uri": ":2.0.4-5.5.6",
"displayName": "SLE Micro 5.5 ISO"
}
}
}
]
Loading

0 comments on commit 1ade37e

Please sign in to comment.