Commit a521c23 1 parent 347fad9 commit a521c23 Copy full SHA for a521c23
File tree 1 file changed +0
-19
lines changed
1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change 21
21
required : false
22
22
type : string
23
23
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.
29
24
secrets :
30
25
registry-username :
31
26
required : true
73
68
DATE_TAG=${{ inputs.version-tag }}-${DATE}${{ inputs.tag-suffix }}
74
69
echo "date_tag=${DATE_TAG}" | tee -a $GITHUB_OUTPUT
75
70
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
-
89
71
- name : Setup and Build
90
72
id : build_image
91
73
uses : redhat-actions/s2i-build@v2
97
79
98
80
- name : Push-Image
99
81
id : push-to-azure
100
- if : steps.image_pull_check.outcome == 'success'
101
82
uses : redhat-actions/push-to-registry@v2
102
83
with :
103
84
image : ${{ steps.build_image.outputs.image }}
You can’t perform that action at this time.
0 commit comments