Skip to content

Commit

Permalink
[#1044] Change base image in update workflow to ubi8-minimal
Browse files Browse the repository at this point in the history
  • Loading branch information
brusdev committed Nov 11, 2024
1 parent 753728d commit 7fb9ba7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ jobs:
if: ${{ inputs.update_base_image }}
run: |
if [ "${{ inputs.base_image }}" = "latest" ]; then
BASE_IMAGE="registry.access.redhat.com/ubi8:$(basename $(skopeo inspect docker://registry.access.redhat.com/ubi8:latest | jq -r '.Labels.url'))"
BASE_IMAGE="registry.access.redhat.com/ubi8-minimal:$(basename $(skopeo inspect docker://registry.access.redhat.com/ubi8-minimal:latest | jq -r '.Labels.url'))"
else
BASE_IMAGE="${{ inputs.base_image }}"
fi
sed -i "s~FROM.*base-env~FROM ${BASE_IMAGE} base-env~" Dockerfile
sed -i "s~FROM.*base-env~FROM ${BASE_IMAGE} as base-env~" Dockerfile
git commit --all --message "Update base image to ${BASE_IMAGE}" || echo "nothing to commit"
- name: Update related images
Expand Down

0 comments on commit 7fb9ba7

Please sign in to comment.