This repository was archived by the owner on Nov 19, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-59
lines changed Expand file tree Collapse file tree 2 files changed +14
-59
lines changed Original file line number Diff line number Diff line change 42
42
id : describe
43
43
run : |
44
44
echo "::set-output name=tag::$(git describe --always --tags)"
45
- if : ${{ github.event_name == 'push' }}
45
+ if : ${{ github.event_name == 'push' || github.event_name == 'release' }}
46
46
47
47
- name : build and push Docker image
48
48
uses : docker/build-push-action@v1
52
52
repository : inspirehep/editor
53
53
add_git_labels : true
54
54
tags : ${{ steps.describe.outputs.tag }}
55
- if : ${{ github.event_name == 'push' }}
55
+ if : ${{ github.event_name == 'push' || github.event_name == 'release' }}
56
56
57
57
- name : deploy on qa
58
58
uses : peter-evans/repository-dispatch@v1
65
65
"image": "inspirehep/editor",
66
66
"tag": "${{ steps.describe.outputs.tag }}"}
67
67
if : ${{ github.event_name == 'push' }}
68
+
69
+ - name : deploy on prod
70
+ uses : peter-evans/repository-dispatch@v1
71
+ with :
72
+ repository : inspirehep/kubernetes
73
+ token : ${{ secrets.INSPIRE_BOT_TOKEN }}
74
+ event-type : deploy
75
+ client-payload : >
76
+ {"environment": "prod",
77
+ "image": "inspirehep/editor",
78
+ "tag": "${{ steps.describe.outputs.tag }}"}
79
+ if : ${{ github.event_name == 'release' }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments