Skip to content

Commit 0a9dbd2

Browse files
authored
Merge pull request #11 from zMynxx/feature/test-cd-1
Feature/test cd 1
2 parents b67e604 + eddd929 commit 0a9dbd2

File tree

5 files changed

+56
-5
lines changed

5 files changed

+56
-5
lines changed

.github/workflows/cd.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#/.github/workflows/cd.yaml
2+
---
13
name: CD
24

35
on:

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#/.github/workflows/ci.yaml
2+
---
13
name: CI
24

35
on:

.github/workflows/publish.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
name: CD
1+
#/.github/workflows/publish.yaml
2+
---
3+
name: Publish
24

35
on:
46
# Publish a new image to Dockerhub on changes to Dockerfile
@@ -9,7 +11,6 @@ on:
911
permissions:
1012
id-token: write
1113
contents: write
12-
packages: write
1314

1415
jobs:
1516
check:
@@ -20,11 +21,9 @@ jobs:
2021
uses: zmynx/github-actions/.github/actions/git/check-merge@feature/gha
2122

2223
cd:
23-
name: continuous-deployment
24+
name: publish-dockerhub
2425
needs: [check]
2526
runs-on: ubuntu-22.04
26-
outputs:
27-
new_tag: ${{ steps.semver.outputs.new_tag }}
2827
steps:
2928
- name: Checkout
3029
uses: actions/checkout@v4

.github/workflows/trunk-cache.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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

.github/workflows/trunk-check.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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

0 commit comments

Comments
 (0)