Skip to content
This repository was archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Simplify the goreleaser config (#77)
Browse files Browse the repository at this point in the history
* Simplify config

* Define non-root user to execute agglayer container
  • Loading branch information
Stefan-Ethernal authored Feb 20, 2024
1 parent f740c4c commit ec9d122
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 36 deletions.
37 changes: 1 addition & 36 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,41 +7,10 @@ release:
prerelease: auto

builds:
- id: linux-amd64
main: ./cmd/
binary: agglayer
goos:
- linux
goarch:
- amd64
env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X github.com/0xPolygon/agglayer.Version={{ .Version }}
- -X github.com/0xPolygon/agglayer.GitRev={{ .Commit }}
- -X github.com/0xPolygon/agglayer.BuildDate={{ .Date }}
- -X github.com/0xPolygon/agglayer.GitBranch={{ .Branch }}

- id: linux-arm64
main: ./cmd/
binary: agglayer
goos:
- linux
goarch:
- arm64
env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X github.com/0xPolygon/agglayer.Version={{ .Version }}
- -X github.com/0xPolygon/agglayer.GitRev={{ .Commit }}
- -X github.com/0xPolygon/agglayer.BuildDate={{ .Date }}
- -X github.com/0xPolygon/agglayer.GitBranch={{ .Branch }}

- main: ./cmd/
binary: agglayer
goos:
- linux
- darwin
goarch:
- amd64
Expand All @@ -67,8 +36,6 @@ dockers:
use: buildx
goos: linux
goarch: amd64
ids:
- linux-amd64
build_flag_templates:
- --platform=linux/amd64
- --label=org.opencontainers.image.title={{ .ProjectName }}
Expand All @@ -86,8 +53,6 @@ dockers:
use: buildx
goos: linux
goarch: arm64
ids:
- linux-arm64
build_flag_templates:
- --platform=linux/arm64
- --label=org.opencontainers.image.title={{ .ProjectName }}
Expand Down
5 changes: 5 additions & 0 deletions Dockerfile.release
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ EXPOSE 8444

COPY agglayer /usr/local/bin

RUN addgroup -S agglayer-user-group \
&& adduser -S agglayer-user -G agglayer-user-group

USER agglayer-user

ENTRYPOINT ["agglayer"]

0 comments on commit ec9d122

Please sign in to comment.