-
-
Notifications
You must be signed in to change notification settings - Fork 39
38 lines (35 loc) · 1.25 KB
/
cloud-deploy.yaml
File metadata and controls
38 lines (35 loc) · 1.25 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
29
30
31
32
33
34
35
36
37
38
# https://github.com/ludwig125/gke-trade-derby/blob/master/.circleci/config.yml
name: Cloud Deployment
on: ["deployment"]
jobs:
deploy:
# Deploy application to Google Kubernetes Engine
name: Deploy to GKE
runs-on: "ubuntu-latest"
if: github.event.deployment.environment == 'production'
steps:
- name: Check out Code
uses: actions/checkout@v1
- name: "Deployment pending"
uses: "deliverybot/deployment-status@master"
with:
state: "pending"
token: "${{ github.token }}"
# do your deployment here, using whatever tooling you like:
- name: "Deploy ${{ github.event.deployment.environment }}"
run: |
echo "task - ${{ github.event.deployment.task }}"
echo "environment - ${{ github.event.deployment.environment }}"
echo "payload - ${{ toJson(github.event.deployment.payload) }}"
- name: "Deployment success"
if: success()
uses: "deliverybot/deployment-status@master"
with:
state: "success"
token: "${{ github.token }}"
- name: "Deployment failure"
if: failure()
uses: "deliverybot/deployment-status@master"
with:
state: "failure"
token: "${{ github.token }}"