Skip to content
This repository was archived by the owner on Nov 19, 2020. It is now read-only.

Commit db17a63

Browse files
committed
global: deploy to prod images
1 parent 6c45c9f commit db17a63

File tree

2 files changed

+14
-59
lines changed

2 files changed

+14
-59
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
id: describe
4343
run: |
4444
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' }}
4646

4747
- name: build and push Docker image
4848
uses: docker/build-push-action@v1
@@ -52,7 +52,7 @@ jobs:
5252
repository: inspirehep/editor
5353
add_git_labels: true
5454
tags: ${{ steps.describe.outputs.tag }}
55-
if: ${{ github.event_name == 'push' }}
55+
if: ${{ github.event_name == 'push' || github.event_name == 'release' }}
5656

5757
- name: deploy on qa
5858
uses: peter-evans/repository-dispatch@v1
@@ -65,3 +65,15 @@ jobs:
6565
"image": "inspirehep/editor",
6666
"tag": "${{ steps.describe.outputs.tag }}"}
6767
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' }}

build-and-deploy.sh

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)