Skip to content

Deploy to Okteto

Deploy to Okteto #6702

name: Deploy to Okteto
on:
schedule:
- cron: '0 */4 * * *'
workflow_dispatch:
jobs:
deploy:
if: ${{github.repository == 'devonfw/my-thai-star'}}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: okteto/context@latest
with:
token: ${{ secrets.OKTETO_TOKEN }}
namespace: devonfw-core
- name: "Create deployment"
uses: okteto/apply@latest
with:
manifest: k8s.yml
- name: Sleep for 30 seconds
uses: jakejarvis/[email protected]
with:
time: '30s'
- name: Verify
uses: srt32/[email protected]
with:
url-to-hit: "https://mts-devonfw-core.cloud.okteto.net/bookTable"
expected-statuses: "200"