@@ -2,8 +2,8 @@ name: Publish to ghcr.io
22
33on :
44 push :
5- branches : [ 'main' ] # only for testing purposes
6- tags : [ '*' ]
5+ tags :
6+ - ' *'
77
88env :
99 REGISTRY : ghcr.io # default is docker.io
3333 # echo "RUBIN_VERSION=${GITHUB_REF#refs/*/}" >> "$GITHUB_ENV"
3434 # echo "RUBIN_BUILD_DATE=$(date +'%Y-%m-%dT%H:%M:%S')" >> "$GITHUB_ENV"
3535 - name : Run GoReleaser to build and release binaries (only once on linux/amd64)
36- id : goreleaser
3736 uses : goreleaser/goreleaser-action@v6
3837 with :
3938 distribution : goreleaser
@@ -48,23 +47,13 @@ jobs:
4847 # copy platform specific binary in actual image (the other one was built in vain, but it's fast :-))
4948 # see also https://goreleaser.com/customization/builds/#why-is-there-a-_v1-suffix-on-amd64-builds
5049 run : |
51- echo "Artifacts:"
52- echo ${{steps.goreleaser.outputs.artifacts}}
53- # {"project_name":"rubin","tag":"v0.9.1","previous_tag":"v0.9.0","version":"0.9.1","commit":"de4fbb79aab8bc21ff05608109bb82043c5b3b92","date":"2025-06-02T17:01:49.945018501Z","runtime":{"goos":"linux","goarch":"amd64"}}
54- echo "Metadata:"
55- echo ${{steps.goreleaser.outputs.metadata}}
56- echo "Files:"
57- find dist/
58- #for arch in amd64 arm64; do
59- # mkdir -p app/linux/$arch
60- # example archive name=dist/rubin_0.9.1_linux_amd64.zip
61- # see .goreleaser.yml name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
62- #mv -v dist/${{ github.event.repository.name }}_${{steps.goreleaser.outputs.metadata.version}}_linux_amd64_v1/${{ github.event.repository.name }} \
63- # app/linux/amd64/${{ github.event.repository.name }}
64- #mv -v dist/${{ github.event.repository.name }}_linux_arm64/${{ github.event.repository.name }} \
65- # app/linux/arm64/${{ github.event.repository.name }}
66- #mv -v dist/polly_linux_amd64_v1/polly app/linux/amd64/polly
67- #mv -v dist/polly_linux_arm64/polly app/linux/arm64/polly
50+ mkdir -p app/linux/amd64 app/linux/arm64
51+ mv -v dist/${{ github.event.repository.name }}_linux_amd64_v1/${{ github.event.repository.name }} \
52+ app/linux/amd64/${{ github.event.repository.name }}
53+ mv -v dist/${{ github.event.repository.name }}_linux_arm64_v8.0/${{ github.event.repository.name }} \
54+ app/linux/arm64/${{ github.event.repository.name }}
55+ mv -v dist/polly_linux_amd64_v1/polly app/linux/amd64/polly
56+ mv -v dist/polly_linux_arm64_v8.0/polly app/linux/arm64/polly
6857
6958 - name : Upload binaries built by go-releaser
7059 uses : actions/upload-artifact@v4
0 commit comments