Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
bnema committed Aug 29, 2024
2 parents 1e10ad6 + fb536a2 commit a308320
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
10 changes: 5 additions & 5 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: 2

before:
hooks:
- go mod tidy
Expand Down Expand Up @@ -27,13 +29,12 @@ dockers:
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
- "--build-arg=ARCH=amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source=https://github.com/bnema/gordon"
extra_files:
- .iscontainer
- image_templates:
- "ghcr.io/bnema/gordon:{{ .Tag }}-arm64"
use: buildx
Expand All @@ -42,13 +43,12 @@ dockers:
build_flag_templates:
- "--pull"
- "--platform=linux/arm64"
- "--build-arg=ARCH=arm64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source=https://github.com/bnema/gordon"
extra_files:
- .iscontainer

archives:
- format: zip
Expand All @@ -59,4 +59,4 @@ changelog:
filters:
exclude:
- "^docs:"
- "^test:"
- "^test:"
9 changes: 1 addition & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
# Start from scratch
FROM alpine:latest

ARG ARCH
COPY gordon /gordon

# Copy the pre-built binary for the specific architecture
COPY dist/gordon-linux-${ARCH} /gordon
# Create the .iscontainer file
RUN touch /.iscontainer

# Set the entrypoint
ENTRYPOINT ["/gordon"]

# Default command
CMD ["serve"]

0 comments on commit a308320

Please sign in to comment.