Skip to content

Commit

Permalink
action: correct the target image version
Browse files Browse the repository at this point in the history
    - We should compare the same version image

Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
  • Loading branch information
Vicente-Cheng authored and bk201 committed Aug 24, 2023
1 parent 3168d15 commit 1450a3f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/installer-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ jobs:
container:
image: registry.suse.com/bci/bci-base:15.4
steps:
- uses: jungwinter/split@v2
id: spliter
with:
msg: ${{ github.ref_name }}
separator: '-'
- name: Install docker
run: zypper ref && zypper -n install docker
- name: Pull new image
Expand All @@ -27,7 +32,7 @@ jobs:
chmod +x /usr/bin/container-diff
- name: Get current OS image from installer
run: |
curl -sfL https://raw.githubusercontent.com/harvester/harvester-installer/master/scripts/package-harvester-os -o /tmp/package-harvester-os
curl -sfL https://raw.githubusercontent.com/harvester/harvester-installer/${{ steps.spliter.outputs._0 }}/scripts/package-harvester-os -o /tmp/package-harvester-os
grep '^BASE_OS_IMAGE="rancher/harvester-os:' /tmp/package-harvester-os > /tmp/tmp-env
- name: Run container-diff
run: |
Expand Down

0 comments on commit 1450a3f

Please sign in to comment.