Missing dollar sign 🤦

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
This commit is contained in:
Mauro Morales 2024-02-27 11:31:33 +01:00
parent c891fda8bd
commit a832a68f93
No known key found for this signature in database
GPG Key ID: 0069994DD7392198
2 changed files with 4 additions and 4 deletions

View File

@ -441,7 +441,7 @@ jobs:
run: echo ${{ secrets.QUAY_PASSWORD }} | docker login -u ${{ secrets.QUAY_USERNAME }} --password-stdin quay.io run: echo ${{ secrets.QUAY_PASSWORD }} | docker login -u ${{ secrets.QUAY_USERNAME }} --password-stdin quay.io
- name: Build iso 🔧 - name: Build iso 🔧
run: | run: |
INIT=[[ "{{ matrix.flavor }}" == "alpine" ]] && echo "openrc" || echo "systemd" INIT=[[ "${{ matrix.flavor }}" == "alpine" ]] && echo "openrc" || echo "systemd"
K3S_VERSION=$(sudo luet --config framework-profile.yaml search -o json k8s/k3s | jq --arg INIT "$INIT" '.packages | map(select(.name == "k3s-" + $INIT)) | map(.version) | unique | last' | tr -d '"') K3S_VERSION=$(sudo luet --config framework-profile.yaml search -o json k8s/k3s | jq --arg INIT "$INIT" '.packages | map(select(.name == "k3s-" + $INIT)) | map(.version) | unique | last' | tr -d '"')
earthly -P +all-arm-generic \ earthly -P +all-arm-generic \
--FLAVOR=${{ matrix.flavor }} \ --FLAVOR=${{ matrix.flavor }} \

View File

@ -87,7 +87,7 @@ jobs:
if: ${{ github.event_name == 'pull_request' }} if: ${{ github.event_name == 'pull_request' }}
run: | run: |
earthly --platform=linux/${{ inputs.arch }} +extract-framework-profile earthly --platform=linux/${{ inputs.arch }} +extract-framework-profile
INIT=[[ "{{ inputs.flavor }}" == "alpine" ]] && echo "openrc" || echo "systemd" INIT=[[ "${{ inputs.flavor }}" == "alpine" ]] && echo "openrc" || echo "systemd"
K3S_VERSION=$(sudo luet --config framework-profile.yaml search -o json k8s/k3s | jq --arg INIT "$INIT" '.packages | map(select(.name == "k3s-" + $INIT)) | map(.version) | unique | last' | tr -d '"') K3S_VERSION=$(sudo luet --config framework-profile.yaml search -o json k8s/k3s | jq --arg INIT "$INIT" '.packages | map(select(.name == "k3s-" + $INIT)) | map(.version) | unique | last' | tr -d '"')
earthly --platform=linux/${{ inputs.arch }} +ci \ earthly --platform=linux/${{ inputs.arch }} +ci \
--SECURITY_SCANS=false \ --SECURITY_SCANS=false \
@ -110,7 +110,7 @@ jobs:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
run: | run: |
earthly --platform=linux/${{ inputs.arch }} +extract-framework-profile earthly --platform=linux/${{ inputs.arch }} +extract-framework-profile
INIT=[[ "{{ inputs.flavor }}" == "alpine" ]] && echo "openrc" || echo "systemd" INIT=[[ "${{ inputs.flavor }}" == "alpine" ]] && echo "openrc" || echo "systemd"
K3S_VERSION=$(sudo luet --config framework-profile.yaml search -o json k8s/k3s | jq --arg INIT "$INIT" '.packages | map(select(.name == "k3s-" + $INIT)) | map(.version) | unique | last' | tr -d '"') K3S_VERSION=$(sudo luet --config framework-profile.yaml search -o json k8s/k3s | jq --arg INIT "$INIT" '.packages | map(select(.name == "k3s-" + $INIT)) | map(.version) | unique | last' | tr -d '"')
earthly --platform=linux/${{ inputs.arch }} +ci \ earthly --platform=linux/${{ inputs.arch }} +ci \
--SECURITY_SCANS=true \ --SECURITY_SCANS=true \
@ -142,7 +142,7 @@ jobs:
env: env:
COSIGN_YES: true COSIGN_YES: true
run: | run: |
INIT=[[ "{{ inputs.flavor }}" == "alpine" ]] && echo "openrc" || echo "systemd" INIT=[[ "${{ inputs.flavor }}" == "alpine" ]] && echo "openrc" || echo "systemd"
K3S_VERSION=$(sudo luet --config framework-profile.yaml search -o json k8s/k3s | jq --arg INIT "$INIT" '.packages | map(select(.name == "k3s-" + $INIT)) | map(.version) | unique | last' | tr -d '"') K3S_VERSION=$(sudo luet --config framework-profile.yaml search -o json k8s/k3s | jq --arg INIT "$INIT" '.packages | map(select(.name == "k3s-" + $INIT)) | map(.version) | unique | last' | tr -d '"')
IMAGE=$(FLAVOR=${{ inputs.flavor }} FLAVOR_RELEASE="${{ inputs.flavor_release }}" MODEL=${{ inputs.model }} TARGETARCH=${{ inputs.arch }} VARIANT=${{ inputs.variant}} REGISTRY_AND_ORG="quay.io/kairos" RELEASE=master-k3sv${K3S_VERSION%%+*}-k3s1 kairos-agent versioneer container-artifact-name) IMAGE=$(FLAVOR=${{ inputs.flavor }} FLAVOR_RELEASE="${{ inputs.flavor_release }}" MODEL=${{ inputs.model }} TARGETARCH=${{ inputs.arch }} VARIANT=${{ inputs.variant}} REGISTRY_AND_ORG="quay.io/kairos" RELEASE=master-k3sv${K3S_VERSION%%+*}-k3s1 kairos-agent versioneer container-artifact-name)
docker tag $(cat IMAGE) $IMAGE docker tag $(cat IMAGE) $IMAGE