diff --git a/.changes/unreleased/Bugfix-20260225-152411.yaml b/.changes/unreleased/Bugfix-20260225-152411.yaml new file mode 100644 index 0000000..627d66a --- /dev/null +++ b/.changes/unreleased/Bugfix-20260225-152411.yaml @@ -0,0 +1,3 @@ +kind: Bugfix +body: Fix release workflow +time: 2026-02-25T15:24:11.332649-05:00 diff --git a/src/.goreleaser.yml b/src/.goreleaser.yml index 551c170..0c67a60 100644 --- a/src/.goreleaser.yml +++ b/src/.goreleaser.yml @@ -23,14 +23,19 @@ builds: binary: '{{ .ProjectName }}' archives: - name_template: '{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}' -dockers: - - image_templates: - - "public.ecr.aws/opslevel/opslevel-runner:latest" - - "public.ecr.aws/opslevel/opslevel-runner:{{ .Tag }}" - build_flag_templates: - - "--label=org.opencontainers.image.created={{ .Date }}" - - "--label=org.opencontainers.image.revision={{ .FullCommit }}" - - "--label=org.opencontainers.image.version={{ .Tag }}" +dockers_v2: + - images: + - "public.ecr.aws/opslevel/opslevel-runner" + tags: + - "latest" + - "{{ .Tag }}" + platforms: + - linux/amd64 + - linux/arm64 + labels: + "org.opencontainers.image.created": "{{ .Date }}" + "org.opencontainers.image.revision": "{{ .FullCommit }}" + "org.opencontainers.image.version": "{{ .Tag }}" brews: - name: opslevel-runner homepage: "https://www.opslevel.com/" diff --git a/src/Dockerfile b/src/Dockerfile index 09c652c..255c7fd 100644 --- a/src/Dockerfile +++ b/src/Dockerfile @@ -2,7 +2,8 @@ FROM golang:alpine as build RUN apk --no-cache add ca-certificates FROM alpine:latest +ARG TARGETPLATFORM # copy the ca-certificate.crt from the build stage COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ -COPY opslevel-runner /opslevel-runner +COPY ${TARGETPLATFORM}/opslevel-runner /opslevel-runner ENTRYPOINT ["/opslevel-runner"]