Skip to content

Commit 54982f3

Browse files
committed
feat(ci): switch to reusable workflows
1 parent c0db15f commit 54982f3

File tree

4 files changed

+31
-134
lines changed

4 files changed

+31
-134
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
tags: ["v*"]
7+
pull_request:
8+
branches: [main]
9+
10+
jobs:
11+
golang:
12+
name: Golang
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
checks: write
17+
uses: depado/github-actions/.github/workflows/golang.yml@main
18+
with:
19+
build-command: "make build"
20+
21+
docker:
22+
name: Docker
23+
needs: [golang]
24+
permissions:
25+
contents: read
26+
packages: write
27+
actions: read
28+
uses: depado/github-actions/.github/workflows/docker.yml@main
29+
secrets:
30+
cleanup-token: ${{ secrets.PAT_DELETE_PACKAGES }}

.github/workflows/docker.yaml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/golang.yml

Lines changed: 0 additions & 70 deletions
This file was deleted.

.github/workflows/goreleaser.yml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,4 @@ permissions:
99

1010
jobs:
1111
goreleaser:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- name: Checkout
15-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
16-
with:
17-
fetch-depth: 0
18-
- name: Set up Go
19-
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
20-
with:
21-
go-version: stable
22-
- name: Run GoReleaser
23-
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6
24-
with:
25-
distribution: goreleaser
26-
version: "~> v2"
27-
args: release --clean
28-
env:
29-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12+
uses: depado/github-actions/.github/workflows/goreleaser.yml@main

0 commit comments

Comments
 (0)