Skip to content

create a preview environment in demo.okteto.dev #1

create a preview environment in demo.okteto.dev

create a preview environment in demo.okteto.dev #1

# file: .github/workflows/preview-closed.yaml
on:
pull_request:
types:
- closed
jobs:
closed:
runs-on: ubuntu-latest
steps:
- name: Context
uses: okteto/context@latest
with:
url: ${{secrets.OKTETO_DEMO_URL}}
token: ${{ secrets.OKTETO_DEMO_TOKEN }}
- name: Destroy preview environment
uses: okteto/destroy-preview@latest
with:
name: pr-${{ github.event.number }}