Skip to content

Commit

Permalink
test run
Browse files Browse the repository at this point in the history
Signed-off-by: Rajpal Chauhan <[email protected]>
  • Loading branch information
rajpalc7 committed Jul 6, 2023
1 parent e57a020 commit 13f6a92
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,53 @@ jobs:
rocketchat_webhook: ${{ secrets.ROCKETCHAT_WEBHOOK }}
github_token: ${{ secrets.GITHUB_TOKEN }}

deploy2prod:
needs: [build, deploy2dev, deploy2test]
permissions:
packages: write
runs-on: ubuntu-latest
environment: prod

# ToDo:
# - Define the 'environment' using an environment variable so it can also be used to define the tags.
steps:
- name: Checkout
uses: actions/checkout@v3

- name: deploy to test
uses: ./.github/workflows/actions/deploy
with:
environment: prod
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
openshift_server_url: ${{ vars.OPENSHIFT_SERVER_URL }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}
image_digest: ${{ needs.build.outputs.image_digest }}
namespace: ca7f8f-prod
job_status: ${{ job.status }}
rocketchat_webhook: ${{ secrets.ROCKETCHAT_WEBHOOK }}
github_token: ${{ secrets.GITHUB_TOKEN }}

# ToDo:
# - Define the 'environment' using an environment variable so it can also be used to define the tags.
steps:
- name: Checkout
uses: actions/checkout@v3

- name: deploy to test
uses: ./.github/workflows/actions/deploy
with:
environment: test
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
openshift_server_url: ${{ vars.OPENSHIFT_SERVER_URL }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}
image_digest: ${{ needs.build.outputs.image_digest }}
namespace: ca7f8f-test
job_status: ${{ job.status }}
rocketchat_webhook: ${{ secrets.ROCKETCHAT_WEBHOOK }}
github_token: ${{ secrets.GITHUB_TOKEN }}

# deploy2test:
# needs: [build, deploy2dev]
# permissions:
Expand Down

0 comments on commit 13f6a92

Please sign in to comment.