Skip to content

Commit 70141c1

Browse files
committed
upd feeder build
1 parent e654eb2 commit 70141c1

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

.github/workflows/ci-build-feeders.yaml

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,22 @@ jobs:
3131

3232
- uses: actions/checkout@v2
3333

34+
- name: Install oc
35+
uses: redhat-actions/oc-installer@v1
36+
with:
37+
version: '4.6'
38+
39+
- name: Authenticate to silver and set context
40+
uses: redhat-actions/oc-login@v1
41+
with:
42+
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }}
43+
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}
44+
45+
# Disables SSL cert checking. Use this if you don't have the certificate authority data.
46+
insecure_skip_tls_verify: true
47+
48+
namespace: ${{ env.OPENSHIFT_NAMESPACE }}
49+
3450
- name: Login to DockerHub
3551
uses: docker/login-action@v1
3652
with:
@@ -66,22 +82,6 @@ jobs:
6682
- name: Push
6783
run: docker push ${{ steps.docker_meta.outputs.tags }}
6884

69-
- name: Install oc
70-
uses: redhat-actions/oc-installer@v1
71-
with:
72-
version: '4.6'
73-
74-
- name: Authenticate and set context
75-
uses: redhat-actions/oc-login@v1
76-
with:
77-
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }}
78-
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}
79-
80-
# Disables SSL cert checking. Use this if you don't have the certificate authority data.
81-
insecure_skip_tls_verify: true
82-
83-
namespace: ${{ env.OPENSHIFT_NAMESPACE }}
84-
8585
- name: 'Get Helm'
8686
if: github.ref != 'refs/heads/dev'
8787
run: |
@@ -143,7 +143,6 @@ jobs:
143143
helm repo add bcgov http://bcgov.github.io/helm-charts
144144
helm upgrade --install proto-asp-${{ steps.set-deploy-id.outputs.DEPLOY_ID }}-feeder -f values.yaml --history-max 3 bcgov/generic-api
145145
146-
147146
- name: Authenticate to Gold and set context
148147
if: github.ref == 'refs/heads/test'
149148
uses: redhat-actions/oc-login@v1
@@ -157,4 +156,3 @@ jobs:
157156
if: github.ref == 'refs/heads/test'
158157
run: |
159158
oc rollout restart deployment/bcgov-aps-portal-feeder-generic-api -n ${{ secrets.OPENSHIFT_GOLD_TEST_NAMESPACE }}
160-

0 commit comments

Comments
 (0)