Skip to content

Commit a521c23

Browse files
committed
remove image pull check
1 parent 347fad9 commit a521c23

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

.github/workflows/workflow-build-image.yaml

-19
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ on:
2121
required: false
2222
type: string
2323
default: 'registry.access.redhat.com/ubi9/python-311:latest'
24-
image-check:
25-
required: false
26-
type: boolean
27-
default: false
28-
description: Check to see if the base image version already exists. Fail the job if it does.
2924
secrets:
3025
registry-username:
3126
required: true
@@ -73,19 +68,6 @@ jobs:
7368
DATE_TAG=${{ inputs.version-tag }}-${DATE}${{ inputs.tag-suffix }}
7469
echo "date_tag=${DATE_TAG}" | tee -a $GITHUB_OUTPUT
7570
76-
- name: Image-Pull-Check
77-
id: image_pull_check
78-
run: |
79-
if [ ${{ inputs.image-check }} ]; then
80-
podman login --username ${{ secrets.registry-username }} --password ${{ secrets.registry-password }} ${{ inputs.registry }}
81-
if podman manifest inspect ${{ inputs.registry }}/${{ inputs.image-name }}:${{ steps.tags.outputs.version }}; then
82-
echo "Image Version " ${{ steps.tags.outputs.version }} " already exists. Please increment the version in the VERSION file to proceed."
83-
exit 1
84-
else
85-
echo "Production image version does not exist, proceeding with new image build"
86-
fi
87-
fi
88-
8971
- name: Setup and Build
9072
id: build_image
9173
uses: redhat-actions/s2i-build@v2
@@ -97,7 +79,6 @@ jobs:
9779

9880
- name: Push-Image
9981
id: push-to-azure
100-
if: steps.image_pull_check.outcome == 'success'
10182
uses: redhat-actions/push-to-registry@v2
10283
with:
10384
image: ${{ steps.build_image.outputs.image }}

0 commit comments

Comments
 (0)