Skip to content

Commit e2ee2d2

Browse files
committed
Trying a different approach
1 parent 3ce5338 commit e2ee2d2

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

.github/workflows/build.from.master.branch.deploy.to.dev.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -143,27 +143,27 @@ jobs:
143143
- name: Check out repository
144144
run: git clone '${{ env.SOURCE_REPOSITORY }}'
145145
#### Custom s2i builder image for CAS API
146-
- name: Build custom s2i builder image
147-
run: |
148-
docker build -t ghcr.io/${{ env.IMAGE_REGISTRY }}/casinterface-custom-s2i:latest ./EDUC-HUB
149-
150-
- name: Login to GitHub Container Registry
151-
uses: docker/login-action@v1
152-
with:
153-
registry: ${{ env.IMAGE_REGISTRY }}
154-
username: ${{ env.IMAGE_REGISTRY_USER }}
155-
password: ${{ env.IMAGE_REGISTRY_PASSWORD }}
156-
157-
- name: Push custom s2i builder image
158-
run: |
159-
docker push ghcr.io/${{ env.IMAGE_REGISTRY }}/casinterface-custom-s2i:latest
146+
#- name: Build custom s2i builder image
147+
# run: |
148+
# docker build -t ghcr.io/${{ env.IMAGE_REGISTRY }}/casinterface-custom-s2i:latest ./EDUC-HUB
149+
150+
#- name: Login to GitHub Container Registry
151+
# uses: docker/login-action@v1
152+
#with:
153+
# registry: ${{ env.IMAGE_REGISTRY }}
154+
#username: ${{ env.IMAGE_REGISTRY_USER }}
155+
#password: ${{ env.IMAGE_REGISTRY_PASSWORD }}
156+
157+
#- name: Push custom s2i builder image
158+
# run: |
159+
# docker push github.io/${{ env.IMAGE_REGISTRY }}/casinterface-custom-s2i:latest
160160
#### End of custom s2i builder image for CAS API
161161
- name: Setup and Build cas api
162162
id: build-image-cas
163163
uses: redhat-actions/s2i-build@v2
164164
with:
165165
path_context: ./EDUC-HUB
166-
builder_image: ${{ env.IMAGE_REGISTRY }}/casinterface-custom-s2i:latest
166+
builder_image: registry.redhat.io/dotnet/dotnet-21-rhel7
167167
image: '${{env.APP_NAME_CAS}}'
168168
tags: ${{ env.TAG }}
169169
env_vars: |

openshift/templates/cas-api/cas-api.dc.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@
3434
name: "cas-api"
3535
volumeMounts:
3636
- name: custom-certs
37-
mountPath: /etc/pki/ca-trust/source/anchors/
37+
mountPath: /opt/app-root/certs/
3838
env:
39+
- name: SSL_CERT_FILE
40+
value: /opt/app-root/certs/trusted_cer.crt
3941
- name: ASPNETCORE_ENVIRONMENT
4042
valueFrom:
4143
configMapKeyRef:

0 commit comments

Comments
 (0)