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 7, 2023
1 parent 41e0555 commit 8eb3e14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 101 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/actions/deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ runs:
with:
environment: ${{ inputs.environment }}
openshift_server_url: ${{ inputs.openshift_server_url }}
openshift_token: ${{ inputs.openshift_token }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}

- name: login in to OpenShift container registry
shell: bash
Expand Down
102 changes: 2 additions & 100 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,103 +152,5 @@ jobs:
job_status: ${{ job.status }}
rocketchat_webhook: ${{ secrets.ROCKETCHAT_WEBHOOK }}
github_token: ${{ secrets.GITHUB_TOKEN }}

# deploy2test:
# needs: [build, deploy2dev]
# permissions:
# packages: write
# runs-on: ubuntu-latest
# environment: test
# steps:
# - name: Log in to the Container registry
# uses: docker/login-action@v2
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}

# - name: Setup Openshift CLI
# uses: redhat-actions/oc-login@v1
# with:
# openshift_server_url: ${{vars.OPENSHIFT_SERVER_URL}}
# openshift_token: ${{secrets.OPENSHIFT_TOKEN}}

# - name: login in to Container Registry
# run: |
# oc registry login
# - name: tagging test image
# run: |
# docker pull ghcr.io/bcgov/von-bc-registries-audit/audit@${{needs.build.outputs.image_digest}}
# docker tag ghcr.io/bcgov/von-bc-registries-audit/audit@${{needs.build.outputs.image_digest}} ghcr.io/bcgov/von-bc-registries-audit/audit:test
# docker push ghcr.io/bcgov/von-bc-registries-audit/audit:test
# - name: tagging the image
# run: |
# docker pull ghcr.io/bcgov/von-bc-registries-audit/audit@${{needs.build.outputs.image_digest}}
# docker tag ghcr.io/bcgov/von-bc-registries-audit/audit@${{needs.build.outputs.image_digest}} image-registry.apps.silver.devops.gov.bc.ca/ca7f8f-tools/audit:test
# docker push image-registry.apps.silver.devops.gov.bc.ca/ca7f8f-tools/audit:test
# - name: Trigger Openshift
# run: |
# echo starting rollout in ${{vars.NAMESPACE}}
# oc -n ${{vars.NAMESPACE}} rollout status dc/audit --watch
# - name: Rocket.Chat Notification
# uses: RocketChat/Rocket.Chat.GitHub.Action.Notification@master
# if: always()
# with:
# type: ${{ job.status }}
# job_name: '*Deployment to Test*'
# mention: 'here'
# mention_if: 'failure'
# channel: '#test-gha'
# url: ${{ secrets.ROCKETCHAT_WEBHOOK }}
# commit: true
# token: ${{ secrets.GITHUB_TOKEN }}

# deploy2prod:
# needs: [build, deploy2dev, deploy2test]
# permissions:
# packages: write
# runs-on: ubuntu-latest
# environment: prod
# steps:
# - name: Log in to the Container registry
# uses: docker/login-action@v2
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}

# - name: Setup Openshift CLI
# uses: redhat-actions/oc-login@v1
# with:
# openshift_server_url: ${{vars.OPENSHIFT_SERVER_URL}}
# openshift_token: ${{secrets.OPENSHIFT_TOKEN}}

# - name: login in to Container Registry
# run: |
# oc registry login
# - name: tagging prod image
# run: |
# docker pull ghcr.io/bcgov/von-bc-registries-audit/audit@${{needs.build.outputs.image_digest}}
# docker tag ghcr.io/bcgov/von-bc-registries-audit/audit@${{needs.build.outputs.image_digest}} ghcr.io/bcgov/von-bc-registries-audit/audit:prod
# docker push ghcr.io/bcgov/von-bc-registries-audit/audit:prod
# - name: tagging the image
# run: |
# docker pull ghcr.io/bcgov/von-bc-registries-audit/audit@${{needs.build.outputs.image_digest}}
# docker tag ghcr.io/bcgov/von-bc-registries-audit/audit@${{needs.build.outputs.image_digest}} image-registry.apps.silver.devops.gov.bc.ca/ca7f8f-tools/audit:prod
# docker push image-registry.apps.silver.devops.gov.bc.ca/ca7f8f-tools/audit:prod
# - name: Trigger Openshift
# run: |
# echo starting rollout in ${{vars.NAMESPACE}}
# oc -n ${{vars.NAMESPACE}} rollout status dc/audit --watch
# - name: Rocket.Chat Notification
# uses: RocketChat/Rocket.Chat.GitHub.Action.Notification@master
# if: always()
# with:
# type: ${{ job.status }}
# job_name: '*Deployment to Prod*'
# mention: 'here'
# mention_if: 'failure'
# channel: '#test-gha'
# url: ${{ secrets.ROCKETCHAT_WEBHOOK }}
# commit: true
# token: ${{ secrets.GITHUB_TOKEN }}


0 comments on commit 8eb3e14

Please sign in to comment.