Skip to content

Commit

Permalink
Use a different token for deployment to dev and prod
Browse files Browse the repository at this point in the history
Because we must.
  • Loading branch information
yrodiere committed Nov 30, 2023
1 parent f50a883 commit 65880da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ jobs:
uses: redhat-actions/oc-login@v1
with:
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN_DEV }}
namespace: ${{ env.OPENSHIFT_NAMESPACE_DEV }}

- name: Log in to OpenShift (Prod)
if: ${{ github.ref == 'refs/heads/production' }}
uses: redhat-actions/oc-login@v1
with:
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN_PROD }}
namespace: ${{ env.OPENSHIFT_NAMESPACE_PROD }}

- name: Delete problematic image
Expand Down

0 comments on commit 65880da

Please sign in to comment.