-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: bishal7679 <bishalhnj127@gmail.com>
- Loading branch information
1 parent
90e1852
commit e77af6a
Showing
22 changed files
with
10,698 additions
and
82 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 |
---|---|---|
@@ -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/dagger-for-github@v6.1.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
version: "latest" | ||
verb: call | ||
module: github.com/bishal7679/harbor-cli@v0.6.0 | ||
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,41 @@ | ||
name: Dagger Pull Request Pipeline | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
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-code: | ||
if: github.event_name == 'pull_request' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Call Linting Function | ||
uses: dagger/dagger-for-github@v6.1.0 | ||
with: | ||
version: "latest" | ||
verb: call | ||
module: github.com/bishal7679/harbor-cli@v0.6.0 | ||
args: lint-code --directory-arg=. | ||
|
||
- name: Call Pull-Request Function | ||
uses: dagger/dagger-for-github@v6.1.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
version: "latest" | ||
verb: call | ||
module: github.com/bishal7679/harbor-cli@v0.6.0 | ||
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
Oops, something went wrong.