-
Notifications
You must be signed in to change notification settings - Fork 1
28 lines (28 loc) · 1.12 KB
/
remove-app.yaml
File metadata and controls
28 lines (28 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Cleanup production environment
# This workflow is intended to be executed manually.
on: workflow_dispatch
env:
PLAYGROUND_PAT: ${{ secrets.PLAYGROUND_PAT}} #TODO: Store your PAT in this secret, or point to the correct one if it has a different name.
PLAYGROUND_ACCOUNT_NAME: dhiguero #TODO: This should be your NAPPTIVE username.
jobs:
delete-prod-app:
name: Delete the production application and its environment.
runs-on: ubuntu-latest
outputs:
envname: ${{ steps.envname.outputs.envname }}
steps:
- uses: actions/checkout@v2
- name: Set environment name
id: envname
run: echo "::set-output name=envname::${PLAYGROUND_ACCOUNT_NAME}/todo-app-prod"
- name: Remove todo app
uses: napptive-actions/playground-github-action@v3.0.1
continue-on-error: true
with:
cmd: "apps remove example-app-nodejs"
environment: ${{steps.envname.outputs.envname}}
- name: Delete production environment
uses: napptive-actions/playground-github-action@v3.0.1
continue-on-error: true
with:
cmd: "env delete ${{steps.envname.outputs.envname }}"