Skip to content

deploy it

deploy it #1524

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 {} \;