Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/test cd 1 #11

Merged
merged 3 commits into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#/.github/workflows/cd.yaml
---
name: CD

on:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#/.github/workflows/ci.yaml
---
name: CI

on:
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: CD
#/.github/workflows/publish.yaml
---
name: Publish

on:
# Publish a new image to Dockerhub on changes to Dockerfile
Expand All @@ -9,7 +11,6 @@ on:
permissions:
id-token: write
contents: write
packages: write

jobs:
check:
Expand All @@ -20,11 +21,9 @@ jobs:
uses: zmynx/github-actions/.github/actions/git/check-merge@feature/gha

cd:
name: continuous-deployment
name: publish-dockerhub
needs: [check]
runs-on: ubuntu-22.04
outputs:
new_tag: ${{ steps.semver.outputs.new_tag }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/trunk-cache.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#/.github/workflows/trunk-cache.yaml
---
on:
push:
branches: [main]
paths: [.trunk/trunk.yaml]

permissions: read-all

jobs:
cache_trunk:
name: Cache Trunk
runs-on: ubuntu-latest
permissions:
actions: write

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Trunk Check
uses: trunk-io/trunk-action@v1
with:
check-mode: populate_cache_only
24 changes: 24 additions & 0 deletions .github/workflows/trunk-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#/.github/workflows/trunk-check.yaml
---
name: Pull Request Trunk Check
on: [pull_request]
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions: read-all

jobs:
trunk_check:
name: Trunk Check Runner
runs-on: ubuntu-latest
permissions:
checks: write # For trunk to post annotations
contents: read # For repo checkout

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Trunk Check
uses: trunk-io/[email protected]
Loading