Skip to content

Commit beaf522

Browse files
Merge pull request #940 from bcgov/s2iupdate
S2iupdate
2 parents 50efa08 + 6863122 commit beaf522

1 file changed

Lines changed: 16 additions & 6 deletions

File tree

.github/workflows/reusable-build-s2i.yaml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ on:
4848
jobs:
4949
build:
5050
name: S2I Build
51-
runs-on: ubuntu-latest
51+
runs-on: ubuntu-24.04
5252

5353
steps:
5454
- name: Process Image Tags
@@ -61,25 +61,35 @@ jobs:
6161
echo "IMAGE_TAGS=${{ inputs.image-tags }}" >> $GITHUB_ENV
6262
6363
- name: Check out
64-
uses: actions/checkout@v2
64+
uses: actions/checkout@v4
6565
with:
6666
ref: ${{ inputs.ref }}
6767

68+
- name: Verify Podman Version
69+
run: |
70+
podman --version
71+
lsb_release -a
72+
73+
- name: Verify Docker Version
74+
run: |
75+
docker version
76+
docker info
77+
6878
- name: Login to Artifactory to Pull Images in S2I Build
6979
env:
7080
ARTIFACTORY_REGISTRY: ${{ secrets.artifactory-registry }}
7181
ARTIFACTORY_USERNAME: ${{ secrets.artifactory-username }}
7282
ARTIFACTORY_PASSWORD: ${{ secrets.artifactory-password }}
7383
if: env.ARTIFACTORY_REGISTRY && env.ARTIFACTORY_USERNAME && env.ARTIFACTORY_PASSWORD
74-
uses: redhat-actions/podman-login@v1
84+
uses: redhat-actions/podman-login@v1.7
7585
with:
7686
registry: ${{ secrets.artifactory-registry }}
7787
username: ${{ secrets.artifactory-username }}
7888
password: ${{ secrets.artifactory-password }}
7989

8090
- name: S2I Build
8191
id: build-image
82-
uses: redhat-actions/s2i-build@v2
92+
uses: redhat-actions/s2i-build@v2.4
8393
with:
8494
builder_image: registry.access.redhat.com/ubi8/python-38:latest
8595
env_vars: |-
@@ -94,7 +104,7 @@ jobs:
94104

95105
- name: Push Image to The Q
96106
if: inputs.push-theq
97-
uses: redhat-actions/push-to-registry@v2
107+
uses: redhat-actions/push-to-registry@v2.8
98108
with:
99109
extra-args: --log-level=debug
100110
image: ${{ steps.build-image.outputs.image }}
@@ -108,7 +118,7 @@ jobs:
108118

109119
- name: Push Image to QMS
110120
if: inputs.push-qms
111-
uses: redhat-actions/push-to-registry@v2
121+
uses: redhat-actions/push-to-registry@v2.8
112122
with:
113123
extra-args: --log-level=debug
114124
image: ${{ steps.build-image.outputs.image }}

0 commit comments

Comments
 (0)