-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding dagger flow pipeline for the release
Signed-off-by: bishal7679 <[email protected]>
- Loading branch information
1 parent
4693268
commit bfc2edb
Showing
13 changed files
with
7,426 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/dagger.gen.go linguist-generated | ||
/querybuilder/** linguist-generated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,36 @@ | ||
name: Publish Release | ||
name: Dagger Release Pipeline | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
- "v*" | ||
branches: [main] | ||
|
||
permissions: | ||
contents: write | ||
packages: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
publish-release: | ||
if: startsWith(github.ref, 'refs/tags/') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup go env | ||
uses: actions/setup-go@master | ||
with: | ||
go-version: "1.21" | ||
- name: goreleaser with tag | ||
uses: goreleaser/goreleaser-action@v5 | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
go-version: "1.22.5" | ||
cache: true | ||
|
||
- name: Call Dagger Function | ||
uses: dagger/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
version: "latest" | ||
verb: call | ||
module: github.com/bishal7679/[email protected] | ||
args: release --directory-arg=. --github-token=${{ env.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Dagger Pull Request Pipeline | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '*.md' | ||
- 'assets/**' | ||
|
||
permissions: | ||
contents: write # This is required for actions/checkout | ||
packages: write # This is required for publishing the package | ||
|
||
jobs: | ||
test-release: | ||
if: github.event_name == 'pull_request' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Call Dagger Function | ||
uses: dagger/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
version: "latest" | ||
verb: call | ||
module: github.com/bishal7679/[email protected] | ||
args: pull-request --directory-arg=. --github-token=${{ env.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "harbor-cli", | ||
"sdk": "go", | ||
"source": "dagger", | ||
"engineVersion": "v0.9.10" | ||
} |
Oops, something went wrong.