Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
Signed-off-by: Rajpal Chauhan <[email protected]>
  • Loading branch information
rajpalc7 committed Mar 12, 2023
1 parent 12df7ba commit a995694
Showing 1 changed file with 32 additions and 30 deletions.
62 changes: 32 additions & 30 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
name: Build & Test

on:
workflow_dispatch:
push:

env:
NAMESPACE: 4a9599-tools
BUILD_NAME: allure-ui
IMAGE_NAME: allure-ui

jobs:
build:
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Image Build
env:
NAMESPACE: 4a9599-tools
BUILD_NAME: allure-ui
IMAGE_NAME: allure-ui
uses: redhat-developer/[email protected]
with:
version: "latest"
Expand All @@ -21,31 +23,31 @@ jobs:
cmd: |
'version'
'start-build ${BUILD_NAME} -n ${NAMESPACE} --follow'
deploys-test:
name: TEST Deployments
environment: test
runs-on: ubuntu-latest
strategy:
matrix:
name: [openshift]
include:
- name: openshift
file: openshift/openshift.deploy.yml
overwrite: true

steps:
- uses: redhat-developer/[email protected]
with:
file: ${{ matrix.file }}
openshift_namespace_url: ${{ secrets.OPENSHIFT_NAMESPACE }}
deploy:
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Dependant is running
uses: redhat-developer/[email protected]
with:
version: 'latest'
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }}
openshift_token_url: ${{ secrets.OPENSHIFT_TOKEN }}
overwrite: ${{ matrix.overwrite }}
parameters:
-p ZONE=test -p PROMOTE=${{ github.repository }}/${{ matrix.name }}:test
-p NAME=${{ github.event.repository.name }} ${{ matrix.parameters }}
penetration_test: true

parameters: '{"apitoken": "${{ secrets.OPENSHIFT_TOKEN }}", "acceptUntrustedCerts": "true"}'
cmd: |
'version'
'-n ${NAMESPACE} tag allure-ui:latest allure-ui:dev'
test:
runs-on: ubuntu-latest
needs: [deploy]
steps:
- name: Dependant is running
uses: redhat-developer/[email protected]
with:
version: 'latest'
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }}
parameters: '{"apitoken": "${{ secrets.OPENSHIFT_TOKEN }}", "acceptUntrustedCerts": "true"}'
cmd: |
'version'
'-n ${NAMESPACE} tag allure-ui:latest allure-ui:test'

0 comments on commit a995694

Please sign in to comment.