-
Notifications
You must be signed in to change notification settings - Fork 7
34 lines (29 loc) · 975 Bytes
/
trigger-deploy.yml
File metadata and controls
34 lines (29 loc) · 975 Bytes
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
29
30
31
32
33
34
name: DeployAimeeLocalCluster
on:
push: # What triggers a deployment. For example, `push`.
branches:
- aimeeLocalCluster # What branch triggers a deployment. For example, `main`.
permissions:
contents: read
pull-requests: read
statuses: read
jobs:
build:
name: deploy from main
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Deployment
id: deploy
env:
GH_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
uses: armory/cli-deploy-action@main
with:
clientId: "${{ secrets.GHA_CLIENT_ID }}"
clientSecret: "${{ secrets.GHA_CLIENT_SECRET }}"
path-to-file: "/deploy-simple-app.yml"
waitForDeployment: true
- name: Print deploy output
id: output
run: echo -e 'DeploymentID ${{steps.deploy.outputs.DEPLOYMENT_ID}}\nLink ${{steps.deploy.outputs.LINK}}\n${{steps.deploy.outputs.RUN_RESULT}}'