Add TMF for DeployAI marketplace #1595
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to the demo namespace | |
on: | |
push: | |
branches: | |
- 'master' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v1 | |
- name: Authenticate and set context | |
uses: redhat-actions/oc-login@v1 | |
with: | |
# URL to your OpenShift cluster. | |
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }} | |
# Authentication Token. Can use username and password instead. | |
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }} | |
# Disables SSL cert checking. Use this if you don't have the certificate authority data. | |
insecure_skip_tls_verify: true | |
- name: Deploy applications | |
run: | | |
cd aws/apps | |
# apply all apps in the apps folder | |
find . -name '*.yaml' -exec oc apply -f {} \; | |
# label them for better filter machanism | |
find . -name '*.yaml' -exec oc label deployed-by=fiware-gitops-ci --overwrite -f {} \; |