Skip to content

Commit fd109c0

Browse files
committed
configs: rename -> simplify
Add exception in workflow to maintain backwards compatibility. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
1 parent cb0ca4f commit fd109c0

File tree

10 files changed

+10
-4
lines changed

10 files changed

+10
-4
lines changed

.github/workflows/build-push.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,12 @@ jobs:
111111
SFX=${{ steps.vars.outputs.sfx }}
112112
for file in *.tar.gz; do
113113
fn=$(basename ${file} .tar.gz)
114-
name=${fn%-*}
114+
app_name=${fn%-*}
115115
arch=${fn##*-}
116-
echo "Found: $name arch: $arch"
116+
# Map clean defconfig names to curios-prefixed container names
117+
name="curios-${app_name}"
118+
[[ "${name}" == "curios-system" ]] && name="curios"
119+
echo "Found: $app_name -> $name, arch: $arch"
117120
tar xf ${file}
118121
rm -f ${file}
119122
mv ${fn}/rootfs-oci ${name}-oci-${arch}${SFX}
@@ -133,7 +136,10 @@ jobs:
133136
- name: Push image(s)
134137
run: |
135138
set -x
136-
IMG=${{ inputs.app }}
139+
APP=${{ inputs.app }}
140+
# Map clean defconfig names to curios-prefixed container names
141+
IMG="curios-${APP}"
142+
[[ "${IMG}" == "curios-system" ]] && IMG="curios"
137143
TAG=${{ steps.vars.outputs.tag }}
138144
SFX=${{ steps.vars.outputs.sfx }}
139145
URL=ghcr.io/${{ github.repository_owner }}/${IMG}

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
contents: write
1616
strategy:
1717
matrix:
18-
app: [curios, curios-httpd, curios-ntpd, curios-nftables]
18+
app: [system, httpd, ntpd, nftables]
1919
uses: ./.github/workflows/build-push.yml
2020
with:
2121
app: ${{ matrix.app }}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)