-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: initial switch to using dagger within github workflows (#151)
- Loading branch information
1 parent
e99e649
commit ca30fed
Showing
9 changed files
with
71 additions
and
55 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
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": ["github>purpleclay/renovate-config"] | ||
} |
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
|
||
jobs: | ||
nsv: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
permissions: | ||
contents: write | ||
steps: | ||
|
@@ -15,10 +15,13 @@ jobs: | |
token: ${{ secrets.GH_NSV }} | ||
|
||
- name: Tag | ||
uses: purpleclay/nsv-action@v1 | ||
with: | ||
token: ${{ secrets.GH_NSV }} | ||
uses: dagger/dagger-for-github@v5 | ||
env: | ||
# skipcq: SCT-A000 | ||
GPG_PRIVATE_KEY: "${{ secrets.GPG_PRIVATE_KEY }}" | ||
GPG_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}" | ||
GPG_TRUST_LEVEL: "${{ secrets.GPG_TRUST_LEVEL }}" | ||
with: | ||
verb: call | ||
module: github.com/purpleclay/daggerverse/[email protected] | ||
args: --src . tag --show --gpg-private-key env:GPG_PRIVATE_KEY --gpg-passphrase env:GPG_PASSPHRASE | ||
cloud-token: ${{ secrets.DAGGER_CLOUD_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 |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
!LICENSE | ||
!mkdocs.yml | ||
!README.md | ||
!Taskfile.yaml | ||
!taskfile.yaml | ||
!docs/**/* | ||
|
||
# Allow Nix files | ||
|
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,5 +1,8 @@ | ||
version: "3" | ||
|
||
vars: | ||
GOLANG_DAGGER: "github.com/purpleclay/daggerverse/[email protected]" | ||
|
||
tasks: | ||
default: | ||
desc: Runs all of the default tasks | ||
|
@@ -47,9 +50,16 @@ tasks: | |
vars: | ||
REPORT_FORMAT: '{{default "colored-line-number" .REPORT_FORMAT}}' | ||
cmds: | ||
- golangci-lint run --timeout 5m0s --out-format {{.REPORT_FORMAT}} | ||
- dagger call -m {{.GOLANG_DAGGER}} --src . lint --format {{.REPORT_FORMAT}} | ||
|
||
format: | ||
desc: Format the code using gofumpt | ||
cmds: | ||
- gofumpt -w -l . | ||
- dagger call -m {{.GOLANG_DAGGER}} --src . format export --path . | ||
|
||
docs: | ||
desc: Builds and hosts the MkDocs documentation | ||
vars: | ||
MKDOCS_MATERIAL_VERSION: '{{default "9.5.26-insiders-4.53.11" .MKDOCS_MATERIAL_VERSION}}' | ||
cmds: | ||
- docker run --rm -it -p 8000:8000 -v $PWD:/docs ghcr.io/purpleclay/mkdocs-material-insiders:{{.MKDOCS_MATERIAL_VERSION}} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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