Skip to content

Commit

Permalink
Add Docker support
Browse files Browse the repository at this point in the history
  • Loading branch information
turtletowerz committed Sep 9, 2024
1 parent c194095 commit f63d542
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

permissions:
contents: write
packages: write

jobs:
build:
Expand Down
23 changes: 23 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
builds:
binary: runlike
env:
- CGO_ENABLED=0
goos:
- linux
- windows
goarch:
- amd64
- arm64

dockers:
- image_templates:
#- "turtletowerz/runlike-go:{{ .Tag }}"
- "ghcr.io/turtletowerz/runlike-go:{{ .Tag }}"
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/amd64"
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM scratch

COPY runlike /

ENTRYPOINT ["/runlike"]

0 comments on commit f63d542

Please sign in to comment.