Skip to content

Commit

Permalink
feat: refresh pods nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
rafasdc committed Dec 16, 2023
1 parent 65280f4 commit 07e5994
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ jobs:
uses: ./.github/workflows/install-env.yaml
secrets: inherit

refresh-pods:
uses: ./.github/workflows/refresh-pods.yaml
secrets: inherit

test-code:
needs: [install-env]
uses: ./.github/workflows/test-code.yaml
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
jobs:
clear-cache:
uses: ./.github/workflows/cache.yaml
refresh-pods:
uses: ./github/workflows/refresh-pods.yaml
secrets: inherit
main:
needs: [clear-cache]
uses: ./.github/workflows/main.yaml
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/refresh-pods.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,19 @@ jobs:
- name: Restart rollout
run: |
oc rollout restart deployment/ccbc
refresh-prod:
runs-on: ubuntu-latest
environment:
name: production
steps:
- name: Authenticate, set context and run deploy script
uses: redhat-actions/oc-login@v1
with:
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}
openshift_app_namespace: ${{ secrets.OPENSHIFT_APP_NAMESPACE }}
namespace: ${{ secrets.OPENSHIFT_APP_NAMESPACE }}
insecure_skip_tls_verify: true
- name: Restart rollout
run: |
oc rollout restart deployment/ccbc

0 comments on commit 07e5994

Please sign in to comment.