@@ -54,11 +54,11 @@ jobs:
54
54
55
55
image-build :
56
56
needs : init
57
- if : ${{needs.init.outputs.app_version}} != " null" && ${{ needs.init.outputs.app_version}} != ""
57
+ if : ${{needs.init.outputs.app_version != ' null' && needs.init.outputs.app_version != ''}}
58
58
runs-on : ubuntu-latest
59
59
strategy :
60
60
matrix :
61
- architectures : ${{ fromJson(needs.init.outputs.architectures) }}
61
+ architectures : ${{fromJson(needs.init.outputs.architectures)}}
62
62
steps :
63
63
- name : Check submitted version
64
64
id : version-check
@@ -78,10 +78,10 @@ jobs:
78
78
79
79
- name : Check out repository
80
80
uses : actions/checkout@v4
81
- if : ${{steps.validity-checks.outputs.IS_BUILDABLE}} == " true"
81
+ if : ${{steps.validity-checks.outputs.IS_BUILDABLE == ' true'}}
82
82
83
83
- name : Install required tools
84
- if : ${{steps.validity-checks.outputs.IS_BUILDABLE}} == " true"
84
+ if : ${{steps.validity-checks.outputs.IS_BUILDABLE == ' true'}}
85
85
run : |
86
86
sudo apt-get update -y
87
87
sudo apt-get install -y debootstrap squashfs-tools wget unzip python3 python3-pip
@@ -95,12 +95,12 @@ jobs:
95
95
sudo -v ; wget -q https://kcl-lang.io/script/install-cli.sh -O - | sudo bash
96
96
97
97
- name : Create Distrobuilder LXC template file
98
- if : ${{steps.validity-checks.outputs.IS_BUILDABLE}} == " true"
98
+ if : ${{steps.validity-checks.outputs.IS_BUILDABLE == ' true'}}
99
99
run : |
100
100
kcl run ${{github.workspace}}/__layout.k -D input=${{github.workspace}}/${{inputs.config_path}} -o /tmp/${{needs.init.outputs.app_name}}.build
101
101
102
102
- name : Build Image
103
- if : ${{steps.validity-checks.outputs.IS_BUILDABLE}} == " true"
103
+ if : ${{steps.validity-checks.outputs.IS_BUILDABLE == ' true'}}
104
104
run : |
105
105
sudo distrobuilder --cache-dir /tmp/cache/${{needs.init.outputs.app_name}} build-lxc /tmp/${{needs.init.outputs.app_name}}.build -o image.serial="${{needs.init.outputs.app_version}}" -o image.architecture=${{matrix.architectures}} /tmp/output/${{needs.init.outputs.app_name}}/
106
106
mv /tmp/output/${{needs.init.outputs.app_name}}/rootfs.tar.xz ./${{needs.init.outputs.app_name}}-${{needs.init.outputs.app_version}}-${{matrix.architectures}}-root.tar.xz
@@ -109,7 +109,7 @@ jobs:
109
109
pwd && ls -lash
110
110
111
111
- name : Publish Image files
112
- if : ${{steps.validity-checks.outputs.IS_BUILDABLE}} == " true" && ${{ steps.validity-checks.outputs.IS_PUBLISHABLE}} == " true"
112
+ if : ${{steps.validity-checks.outputs.IS_BUILDABLE == ' true' && steps.validity-checks.outputs.IS_PUBLISHABLE == ' true'}}
113
113
run : |
114
114
cat << EOF > /tmp/rclone.conf
115
115
$RCLONE_CONFIG
@@ -124,7 +124,7 @@ jobs:
124
124
RCLONE_CONFIG_PASS : ${{secrets.RCLONE_CONFIG_PASS}}
125
125
126
126
- name : Publish Image metadata
127
- if : ${{steps.validity-checks.outputs.IS_BUILDABLE}} == " true" && ${{ steps.validity-checks.outputs.IS_PUBLISHABLE}} == " true"
127
+ if : ${{steps.validity-checks.outputs.IS_BUILDABLE == ' true' && steps.validity-checks.outputs.IS_PUBLISHABLE == ' true'}}
128
128
run : |
129
129
CATEGORIES_STR="${{needs.init.outputs.categories}}"
130
130
CATEGORIES_FMT=$(echo "[\"$CATEGORIES_STR\"]" | sed -E 's/^\["[ ,]+/["/g' | sed -E 's/[ ,]+"]$/"]/g' | sed -E 's/ *, */","/g')
0 commit comments