-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (51 loc) · 1.61 KB
/
merge-to-dev.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
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Merge to dev
on:
push:
branches:
- dev
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
reset-release-candidate:
uses: NexusMutual/workflows/.github/workflows/reset.yml@master
with:
target-ref: release-candidate
base-ref: dev
environment: production
secrets:
DEPLOYER_APP_ID: ${{ secrets.DEPLOYER_APP_ID }}
DEPLOYER_APP_PK: ${{ secrets.DEPLOYER_APP_PK }}
bump:
needs: reset-release-candidate
uses: NexusMutual/workflows/.github/workflows/bump.yml@master
with:
ref: 'release-candidate'
bump-command: npm version patch --no-git-tag-version
environment: production
secrets:
DEPLOYER_APP_ID: ${{ secrets.DEPLOYER_APP_ID }}
DEPLOYER_APP_PK: ${{ secrets.DEPLOYER_APP_PK }}
build:
needs: bump
uses: NexusMutual/workflows/.github/workflows/build.yml@master
with:
ref: 'release-candidate'
environment: production
image: ${{ github.repository }}
secrets:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
tag-image:
needs: build
uses: NexusMutual/workflows/.github/workflows/tag-image.yml@master
with:
environment: production
image: ${{ github.repository }}
ref: 'release-candidate'
target-tag: ${{ github.ref_name == 'master' && 'latest' || 'staging' }}
secrets:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}