-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 1.05 KB
/
pipline.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
name: Project pipeline
on:
push:
branches:
- '**'
paths-ignore:
- 'LICENSE'
- 'README.md'
- 'CHANGELOG.md'
jobs:
prepare:
uses: ./.github/workflows/prepare.yml
secrets: inherit
linter:
uses: ./.github/workflows/linter.yml
needs: [prepare]
secrets: inherit
with:
DEPLOY_ENV: ${{ needs.prepare.outputs.DEPLOY_ENV }}
RUST_TOOLCHAIN: ${{ needs.prepare.outputs.RUST_TOOLCHAIN }}
build:
uses: ./.github/workflows/build.yml
needs: [prepare, linter]
secrets: inherit
with:
DEPLOY_ENV: ${{ needs.prepare.outputs.DEPLOY_ENV }}
RUST_TOOLCHAIN: ${{ needs.prepare.outputs.RUST_TOOLCHAIN }}
IMAGE_NAME: ${{ needs.prepare.outputs.IMAGE_NAME }}
deploy:
needs: [prepare, linter, build]
uses: ./.github/workflows/deploy.yml
secrets: inherit
with:
DEPLOY_ENV: ${{ needs.prepare.outputs.DEPLOY_ENV }}
DOCKER_IMAGE: ${{ needs.build.outputs.DOCKER_IMAGE }}