Revised Dockerfile and goreleaser to allow for CI

This commit is contained in:
Alex Lovell-Troy 2023-10-23 16:12:18 -04:00
parent 4298912ee7
commit ce61aed9a4
2 changed files with 7 additions and 2 deletions

View file

@ -22,6 +22,11 @@ dockers:
- "--label=org.opencontainers.image.title={{.ProjectName}}" - "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}" - "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}" - "--label=org.opencontainers.image.version={{.Version}}"
extra_files:
- LICENSE
- CHANGELOG.md
- README.md
- bin/magellan.sh
archives: archives:
- format: tar.gz - format: tar.gz
rlcp: true rlcp: true
@ -34,10 +39,10 @@ archives:
{{- else }}{{ .Arch }}{{ end }} {{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }} {{- if .Arm }}v{{ .Arm }}{{ end }}
files: files:
- migrations/*
- LICENSE - LICENSE
- CHANGELOG.md - CHANGELOG.md
- README.md - README.md
- bin/magellan.sh
checksum: checksum:
name_template: 'checksums.txt' name_template: 'checksums.txt'
snapshot: snapshot:

View file

@ -7,7 +7,7 @@ USER 65534:65534
COPY magellan /magellan COPY magellan /magellan
COPY bin/magellan.sh /usr/bin/magellan.sh COPY /bin/magellan.sh /magellan.sh
CMD [ "/magellan.sh" ] CMD [ "/magellan.sh" ]