Skip to content

Commit 612439f

Browse files
committed
feat: do-manager v1.0.0 — initial release
0 parents  commit 612439f

49 files changed

Lines changed: 10768 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copy this file to .env and fill in your values.
2+
# do-manager reads DO_TOKEN automatically (no export needed if you use direnv).
3+
4+
DO_TOKEN=your_digitalocean_api_token_here

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Tell GitHub Linguist not to count the docs site in language stats
2+
docs/index.html linguist-documentation=true
3+
4+
# Treat shell templates as non-code for stats (they inflate Shell %)
5+
pkg/tmpl/scripts/*.sh linguist-vendored=true

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [stable, dev]
6+
pull_request:
7+
branches: [stable, dev]
8+
9+
jobs:
10+
build:
11+
name: Build & Vet
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@v5
20+
with:
21+
go-version-file: go.mod
22+
cache: true
23+
24+
- name: Download dependencies
25+
run: go mod download
26+
27+
- name: Build
28+
run: go build ./...
29+
30+
- name: Vet
31+
run: go vet ./...

.github/workflows/pages.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Deploy GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- stable
7+
paths:
8+
- "docs/**"
9+
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
concurrency:
18+
group: pages
19+
cancel-in-progress: true
20+
21+
jobs:
22+
deploy:
23+
runs-on: ubuntu-latest
24+
environment:
25+
name: github-pages
26+
url: ${{ steps.deployment.outputs.page_url }}
27+
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v4
31+
32+
- name: Setup Pages
33+
uses: actions/configure-pages@v4
34+
35+
- name: Upload artifact
36+
uses: actions/upload-pages-artifact@v3
37+
with:
38+
path: docs/
39+
40+
- name: Deploy to GitHub Pages
41+
id: deployment
42+
uses: actions/deploy-pages@v4

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
goreleaser:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Set up Go
22+
uses: actions/setup-go@v5
23+
with:
24+
go-version-file: go.mod
25+
cache: true
26+
27+
- name: Run GoReleaser
28+
uses: goreleaser/goreleaser-action@v6
29+
with:
30+
distribution: goreleaser
31+
version: latest
32+
args: release --clean
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Binaries
2+
do-manager
3+
do-manager.exe
4+
dist/
5+
6+
# Env / config
7+
.env
8+
.env.local
9+
.do-manager.yaml
10+
11+
# Go
12+
*.test
13+
*.out
14+
vendor/
15+
16+
# IDE
17+
.idea/
18+
.vscode/
19+
*.swp

.goreleaser.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
version: 2
2+
3+
project_name: do-manager
4+
5+
before:
6+
hooks:
7+
- go mod tidy
8+
9+
builds:
10+
- id: do-manager
11+
main: .
12+
binary: do-manager
13+
ldflags:
14+
- -s -w
15+
- -X 'github.com/franckferman/do-manager/cmd.Version={{ .Version }}'
16+
- -X 'github.com/franckferman/do-manager/cmd.Commit={{ .ShortCommit }}'
17+
- -X 'github.com/franckferman/do-manager/cmd.BuildDate={{ .Date }}'
18+
env:
19+
- CGO_ENABLED=0
20+
goos:
21+
- linux
22+
- darwin
23+
- windows
24+
goarch:
25+
- amd64
26+
- arm64
27+
28+
archives:
29+
- id: default
30+
name_template: >-
31+
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}
32+
format_overrides:
33+
- goos: windows
34+
format: zip
35+
files:
36+
- README.md
37+
- LICENSE
38+
39+
checksum:
40+
name_template: "checksums.txt"
41+
42+
changelog:
43+
sort: asc
44+
filters:
45+
exclude:
46+
- "^docs:"
47+
- "^test:"
48+
- "^chore:"
49+
- Merge pull request
50+
- Merge branch
51+
52+
release:
53+
github:
54+
owner: franckferman
55+
name: do-manager
56+
name_template: "v{{ .Version }}"
57+
draft: false
58+
prerelease: auto

0 commit comments

Comments
 (0)