-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (31 loc) · 841 Bytes
/
cd.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'
on:
push:
branches:
- main
permissions:
checks: write
contents: write
jobs:
lint:
name: Lint
uses: ./.github/workflows/lint.yml
build:
name: Build
uses: ./.github/workflows/build.yml
publish_github:
name: Publish to GitHub
uses: ./.github/workflows/publish-github.yml
needs: [lint, build]
if: ${{ needs.build.outputs.current_version != needs.build.outputs.previous_version }}
secrets: inherit
with:
version: ${{ needs.build.outputs.current_version }}
publish_docker:
name: Publish to Docker Hub
uses: ./.github/workflows/publish-docker.yml
needs: [lint, build]
if: ${{ needs.build.outputs.current_version != needs.build.outputs.previous_version }}
secrets: inherit
with:
version: ${{ needs.build.outputs.current_version }}