-
Notifications
You must be signed in to change notification settings - Fork 69
44 lines (39 loc) · 1.29 KB
/
push-master.yml
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
39
40
41
42
43
44
name: Push master
on:
push:
branches: [master]
release:
types: [released]
defaults:
run:
shell: bash
jobs:
test:
uses: ./.github/workflows/backend-tests-on-docker.yml
with:
ref: ${{ github.ref }}
secrets: inherit
deploy:
needs: test
runs-on: ubuntu-latest
steps:
- name: send event (release)
if : ${{ github.event_name == 'release' }}
uses: cern-sis/gh-workflows/.github/actions/kubernetes-project-new-images@v5.6.0
with:
event-type: release
images: |
inspirehep/next@${{ needs.test.outputs.tag }}
inspirehep/next-assets@${{ needs.test.outputs.tag }}
inspirehep/next-scrapyd@${{ needs.test.outputs.tag }}
token: ${{ secrets.PAT_FIRE_EVENTS_ON_CERN_SIS_KUBERNETES }}
- name: send event (update)
if : ${{ github.event_name != 'release' }}
uses: cern-sis/gh-workflows/.github/actions/kubernetes-project-new-images@v5.6.0
with:
event-type: update
images: |
inspirehep/next@${{ needs.test.outputs.tag }}
inspirehep/next-assets@${{ needs.test.outputs.tag }}
inspirehep/next-scrapyd@${{ needs.test.outputs.tag }}
token: ${{ secrets.PAT_FIRE_EVENTS_ON_CERN_SIS_KUBERNETES }}