Skip to content

Commit

Permalink
chore: release
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Aug 12, 2024
1 parent 4661e3b commit 57c160b
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: release

on:
push:
tags:
- v*

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version-file: go.mod

- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37 changes: 37 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64

archives:
- replacements:
linux: Linux
amd64: x86_64
allow_different_binary_count: true

checksum:
name_template: 'checksums.txt'

snapshot:
name_template: "{{ .Tag }}-next"

changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

kos:
- repository: ghcr.io/satisfactorymodding/dbdumper
tags:
- "{{ .Tag }}"
- "v{{ .Major }}"
- "v{{ .Major }}.{{ .Minor }}"
- "latest"
bare: true
platforms:
- linux/amd64
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM alpine
RUN apk add --no-cache postgresql16-client
COPY dbdumper /
ENTRYPOINT ["/dbdumper"]

0 comments on commit 57c160b

Please sign in to comment.