Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Lokesh Mandvekar <[email protected]>
  • Loading branch information
lsm5 committed Feb 9, 2024
1 parent 305290c commit 5b19c78
Showing 1 changed file with 37 additions and 7 deletions.
44 changes: 37 additions & 7 deletions .github/workflows/machine-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,50 @@ jobs:
cosa build
#cosa compress
- name: cosa build applehv
#- 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 buildextend-applehv
cosa compress
- name: cosa build windows
- name: create qcow2 containerfile
run: |
cd fcos
cosa buildextend-hyperv
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 build 3 images with containerfile
- 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
#- name: push 3 images to quay

0 comments on commit 5b19c78

Please sign in to comment.