-
Notifications
You must be signed in to change notification settings - Fork 7
38 lines (38 loc) · 1 KB
/
CD-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
name: CD DEV
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
on:
workflow_run:
workflows: ["CI"]
branches:
- main
types:
- completed
jobs:
docker-master:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
uses: "Recodive/Workflows/.github/workflows/CD Docker.yml@main"
with:
file: apps/master/Dockerfile
context: .
tags: premid/api-master
version: ${{ github.sha }}-${{ github.run_number }}
secrets:
GH_NPM_TOKEN: ${{ secrets.GH_NPM_TOKEN }}
permissions:
contents: read
packages: write
docker-worker:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
uses: "Recodive/Workflows/.github/workflows/CD Docker.yml@main"
with:
file: apps/worker/Dockerfile
context: .
tags: premid/api-worker
version: ${{ github.sha }}-${{ github.run_number }}
secrets:
GH_NPM_TOKEN: ${{ secrets.GH_NPM_TOKEN }}
permissions:
contents: read
packages: write