Skip to content

Commit

Permalink
Update image generation process
Browse files Browse the repository at this point in the history
  • Loading branch information
kallioli committed Jul 5, 2023
1 parent 4178717 commit 1a0ca81
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/create-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ name: CI

env:
VERSION: ${{ github.ref_name }}
OS_URL: https://cdn.amazonlinux.com/os-images/$VERSION/kvm/amzn2-kvm-$VERSION-x86_64.xfs.gpt.qcow2
BASE_OS_IMAGE: base-os.qcow2

# Controls when the workflow will run
Expand Down Expand Up @@ -37,7 +36,7 @@ jobs:
# Runs a set of commands using the runners shell
- name: Download base image from AWS
run: |
sudo wget "$OS_URL" -O $BASE_OS_IMAGE
sudo wget "https://cdn.amazonlinux.com/os-images/${{ env.VERSION }}/kvm/amzn2-kvm-${{ env.VERSION }}-x86_64.xfs.gpt.qcow2" -O $BASE_OS_IMAGE
- name: Making some changes on base image
run: |
sudo virt-copy-in -a $BASE_OS_IMAGE config/cloud.cfg /etc/cloud/
Expand Down

0 comments on commit 1a0ca81

Please sign in to comment.