Skip to content

[skip-ci] machine images #33

[skip-ci] machine images

[skip-ci] machine images #33

Workflow file for this run

name: MACHINE IMAGE TRIAL
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
#defaults:
#run:
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Pull coreos-assembler image
run: podman pull quay.io/coreos-assembler/coreos-assembler
- name: Create fcos work dir
run: mkdir fcos
- name: cosa init
shell: bash -l {0}
run: |
source ./contrib/podman-next/fcos-podmanimage/cosa-snippet
cd fcos
cosa init https://github.com/coreos/fedora-coreos-config
- name: cosa fetch
shell: bash -l {0}
run: |
#source ./contrib/podman-next/fcos-podmanimage/cosa-snippet
cd fcos
cosa fetch
- name: cosa build
shell: bash -l {0}
run: |
#source ./contrib/podman-next/fcos-podmanimage/cosa-snippet
cd fcos
cosa build
#cosa compress
#- name: cosa build applehv
#run: |
#cd fcos
#cosa buildextend-applehv
#- name: cosa build windows
#run: |
#cd fcos
#cosa buildextend-hyperv
- name: compress image
run: |
cd fcos
cosa compress
- name: create qcow2 containerfile
run: |

Check failure on line 62 in .github/workflows/machine-images.yml

View workflow run for this annotation

GitHub Actions / MACHINE IMAGE TRIAL

Invalid workflow file

The workflow is not valid. .github/workflows/machine-images.yml (Line: 62, Col: 12): Unexpected symbol: '$QCOW_IMAGE'. Located at position 5 within expression: env.$QCOW_IMAGE
echo "QCOW_IMAGE=$(ls | grep qcow2.xz)" >> "$GITHUB_ENV"
cat > Containerfile.qcow2 << EOF
FROM scratch
COPY ./builds/latest/x86_64/${{ env.QCOW_IMAGE }} ${{ env.$QCOW_IMAGE }}
EOF
- name: Build FCOS Image with qcow2
id: build_image_multiarch
# Ref: https://github.com/redhat-actions/buildah-build
uses: redhat-actions/buildah-build@v2
with:
image: podman-machine-images
tags: 5.0-qemu
archs: x86_64
containerfiles: Containerfile.qcow2
labels: |
org.opencontainers.image.title=fcos-podman-next qcow2 image
#org.opencontainers.image.source=https://raw.githubusercontent.com/${{ github.repository }}/${{ github.sha }}/contrib/podman-next/fcos-podmanimage/Containerfile
#org.opencontainers.image.url=https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
#org.opencontainers.image.description=FCOS image with rpms from rhcontainerbot/podman-next copr
#org.opencontainers.image.revision=${{ github.sha }}
- name: podman manifest create
run: podman manifest create quay.io/podman/machine-images:5.0
- name: podman manifest add 3 images
run: podman manifest add quay.io/podman/machine-images:5.0 quay.io/podman/machine-images:5.0-qemu
#- name: push 3 images to quay