File tree Expand file tree Collapse file tree 5 files changed +56
-5
lines changed Expand file tree Collapse file tree 5 files changed +56
-5
lines changed Original file line number Diff line number Diff line change
1
+ # /.github/workflows/cd.yaml
2
+ ---
1
3
name : CD
2
4
3
5
on :
Original file line number Diff line number Diff line change
1
+ # /.github/workflows/ci.yaml
2
+ ---
1
3
name : CI
2
4
3
5
on :
Original file line number Diff line number Diff line change 1
- name : CD
1
+ # /.github/workflows/publish.yaml
2
+ ---
3
+ name : Publish
2
4
3
5
on :
4
6
# Publish a new image to Dockerhub on changes to Dockerfile
9
11
permissions :
10
12
id-token : write
11
13
contents : write
12
- packages : write
13
14
14
15
jobs :
15
16
check :
20
21
uses : zmynx/github-actions/.github/actions/git/check-merge@feature/gha
21
22
22
23
cd :
23
- name : continuous-deployment
24
+ name : publish-dockerhub
24
25
needs : [check]
25
26
runs-on : ubuntu-22.04
26
- outputs :
27
- new_tag : ${{ steps.semver.outputs.new_tag }}
28
27
steps :
29
28
- name : Checkout
30
29
uses : actions/checkout@v4
Original file line number Diff line number Diff line change
1
+ # /.github/workflows/trunk-cache.yaml
2
+ ---
3
+ on :
4
+ push :
5
+ branches : [main]
6
+ paths : [.trunk/trunk.yaml]
7
+
8
+ permissions : read-all
9
+
10
+ jobs :
11
+ cache_trunk :
12
+ name : Cache Trunk
13
+ runs-on : ubuntu-latest
14
+ permissions :
15
+ actions : write
16
+
17
+ steps :
18
+ - name : Checkout
19
+ uses : actions/checkout@v3
20
+
21
+ - name : Trunk Check
22
+ uses : trunk-io/trunk-action@v1
23
+ with :
24
+ check-mode : populate_cache_only
Original file line number Diff line number Diff line change
1
+ # /.github/workflows/trunk-check.yaml
2
+ ---
3
+ name : Pull Request Trunk Check
4
+ on : [pull_request]
5
+ concurrency :
6
+ group : ${{ github.head_ref || github.run_id }}
7
+ cancel-in-progress : true
8
+
9
+ permissions : read-all
10
+
11
+ jobs :
12
+ trunk_check :
13
+ name : Trunk Check Runner
14
+ runs-on : ubuntu-latest
15
+ permissions :
16
+ checks : write # For trunk to post annotations
17
+ contents : read # For repo checkout
18
+
19
+ steps :
20
+ - name : Checkout
21
+ uses : actions/checkout@v4
22
+
23
+ - name : Trunk Check
24
+ uses : trunk-io/trunk-action@v1.1.10
You can’t perform that action at this time.
0 commit comments