From d2eacd93dc435df5eaab1b69c100ed8ca480b04f Mon Sep 17 00:00:00 2001 From: Elbaz Date: Thu, 21 Sep 2023 16:20:24 +0300 Subject: [PATCH] Update release process to release `tofu` binary (#456) --- .goreleaser.yaml | 96 ++++++++++++++++++++++++------------------------ Dockerfile | 6 +-- 2 files changed, 51 insertions(+), 51 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 9b7e2b0e8c..38023a828a 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,4 +1,4 @@ -project_name: opentf +project_name: tofu before: hooks: @@ -65,17 +65,17 @@ dockers: - "--pull" - "--platform=linux/amd64" - "--label=org.opencontainers.image.title={{ .ProjectName }}" - - "--label=org.opencontainers.image.vendor=OpenTF" - - "--label=org.opencontainers.image.description=OpenTF {{ .Version }}" - - "--label=org.opencontainers.image.url=https://github.com/opentffoundation/opentf" - - "--label=org.opencontainers.image.documentation=https://github.com/opentffoundation/opentf/blob/main/README.md" - - "--label=org.opencontainers.image.source=https://github.com/opentffoundation/opentf" + - "--label=org.opencontainers.image.vendor=OpenTofu" + - "--label=org.opencontainers.image.description=OpenTofu {{ .Version }}" + - "--label=org.opencontainers.image.url=https://github.com/opentofu/opentofu" + - "--label=org.opencontainers.image.documentation=https://github.com/opentofu/opentofu/blob/main/README.md" + - "--label=org.opencontainers.image.source=https://github.com/opentofu/opentofu" - "--label=org.opencontainers.image.licenses=MPL-2.0" - "--label=org.opencontainers.image.version={{ .Version }}" - "--label=org.opencontainers.image.revision={{ .FullCommit }}" - "--label=org.opencontainers.image.created={{ time \"2006-01-02T15:04:05Z07:00\" }}" image_templates: - - "ghcr.io/opentffoundation/opentf:{{ .Version }}-amd64" + - "ghcr.io/opentofu/opentofu:{{ .Version }}-amd64" - use: buildx goarch: arm64 @@ -83,17 +83,17 @@ dockers: - "--pull" - "--platform=linux/arm64" - "--label=org.opencontainers.image.title={{ .ProjectName }}" - - "--label=org.opencontainers.image.vendor=OpenTF" - - "--label=org.opencontainers.image.description=OpenTF {{ .Version }}" - - "--label=org.opencontainers.image.url=https://github.com/opentffoundation/opentf" - - "--label=org.opencontainers.image.documentation=https://github.com/opentffoundation/opentf/blob/main/README.md" - - "--label=org.opencontainers.image.source=https://github.com/opentffoundation/opentf" + - "--label=org.opencontainers.image.vendor=OpenTofu" + - "--label=org.opencontainers.image.description=OpenTofu {{ .Version }}" + - "--label=org.opencontainers.image.url=https://github.com/opentofu/opentofu" + - "--label=org.opencontainers.image.documentation=https://github.com/opentofu/opentofu/blob/main/README.md" + - "--label=org.opencontainers.image.source=https://github.com/opentofu/opentofu" - "--label=org.opencontainers.image.licenses=MPL-2.0" - "--label=org.opencontainers.image.version={{ .Version }}" - "--label=org.opencontainers.image.revision={{ .FullCommit }}" - "--label=org.opencontainers.image.created={{ time \"2006-01-02T15:04:05Z07:00\" }}" image_templates: - - "ghcr.io/opentffoundation/opentf:{{ .Version }}-arm64" + - "ghcr.io/opentofu/opentofu:{{ .Version }}-arm64" - use: buildx goarch: arm @@ -101,17 +101,17 @@ dockers: - "--pull" - "--platform=linux/arm" - "--label=org.opencontainers.image.title={{ .ProjectName }}" - - "--label=org.opencontainers.image.vendor=OpenTF" - - "--label=org.opencontainers.image.description=OpenTF {{ .Version }}" - - "--label=org.opencontainers.image.url=https://github.com/opentffoundation/opentf" - - "--label=org.opencontainers.image.documentation=https://github.com/opentffoundation/opentf/blob/main/README.md" - - "--label=org.opencontainers.image.source=https://github.com/opentffoundation/opentf" + - "--label=org.opencontainers.image.vendor=OpenTofu" + - "--label=org.opencontainers.image.description=OpenTofu {{ .Version }}" + - "--label=org.opencontainers.image.url=https://github.com/opentofu/opentofu" + - "--label=org.opencontainers.image.documentation=https://github.com/opentofu/opentofu/blob/main/README.md" + - "--label=org.opencontainers.image.source=https://github.com/opentofu/opentofu" - "--label=org.opencontainers.image.licenses=MPL-2.0" - "--label=org.opencontainers.image.version={{ .Version }}" - "--label=org.opencontainers.image.revision={{ .FullCommit }}" - "--label=org.opencontainers.image.created={{ time \"2006-01-02T15:04:05Z07:00\" }}" image_templates: - - "ghcr.io/opentffoundation/opentf:{{ .Version }}-arm" + - "ghcr.io/opentofu/opentofu:{{ .Version }}-arm" - use: buildx goarch: "386" @@ -119,53 +119,53 @@ dockers: - "--pull" - "--platform=linux/386" - "--label=org.opencontainers.image.title={{ .ProjectName }}" - - "--label=org.opencontainers.image.vendor=OpenTF" - - "--label=org.opencontainers.image.description=OpenTF {{ .Version }}" - - "--label=org.opencontainers.image.url=https://github.com/opentffoundation/opentf" - - "--label=org.opencontainers.image.documentation=https://github.com/opentffoundation/opentf/blob/main/README.md" - - "--label=org.opencontainers.image.source=https://github.com/opentffoundation/opentf" + - "--label=org.opencontainers.image.vendor=OpenTofu" + - "--label=org.opencontainers.image.description=OpenTofu {{ .Version }}" + - "--label=org.opencontainers.image.url=https://github.com/opentofu/opentofu" + - "--label=org.opencontainers.image.documentation=https://github.com/opentofu/opentofu/blob/main/README.md" + - "--label=org.opencontainers.image.source=https://github.com/opentofu/opentofu" - "--label=org.opencontainers.image.licenses=MPL-2.0" - "--label=org.opencontainers.image.version={{ .Version }}" - "--label=org.opencontainers.image.revision={{ .FullCommit }}" - "--label=org.opencontainers.image.created={{ time \"2006-01-02T15:04:05Z07:00\" }}" image_templates: - - "ghcr.io/opentffoundation/opentf:{{ .Version }}-386" + - "ghcr.io/opentofu/opentofu:{{ .Version }}-386" docker_manifests: - - name_template: ghcr.io/opentffoundation/opentf:{{ .Version }} + - name_template: ghcr.io/opentofu/opentofu:{{ .Version }} image_templates: - - ghcr.io/opentffoundation/opentf:{{ .Version }}-amd64 - - ghcr.io/opentffoundation/opentf:{{ .Version }}-arm64 - - ghcr.io/opentffoundation/opentf:{{ .Version }}-arm - - ghcr.io/opentffoundation/opentf:{{ .Version }}-386 + - ghcr.io/opentofu/opentofu:{{ .Version }}-amd64 + - ghcr.io/opentofu/opentofu:{{ .Version }}-arm64 + - ghcr.io/opentofu/opentofu:{{ .Version }}-arm + - ghcr.io/opentofu/opentofu:{{ .Version }}-386 - - name_template: ghcr.io/opentffoundation/opentf:{{ .Major }}.{{ .Minor }} + - name_template: ghcr.io/opentofu/opentofu:{{ .Major }}.{{ .Minor }} image_templates: - - ghcr.io/opentffoundation/opentf:{{ .Version }}-amd64 - - ghcr.io/opentffoundation/opentf:{{ .Version }}-arm64 - - ghcr.io/opentffoundation/opentf:{{ .Version }}-arm - - ghcr.io/opentffoundation/opentf:{{ .Version }}-386 + - ghcr.io/opentofu/opentofu:{{ .Version }}-amd64 + - ghcr.io/opentofu/opentofu:{{ .Version }}-arm64 + - ghcr.io/opentofu/opentofu:{{ .Version }}-arm + - ghcr.io/opentofu/opentofu:{{ .Version }}-386 - - name_template: ghcr.io/opentffoundation/opentf:{{ .Major }} + - name_template: ghcr.io/opentofu/opentofu:{{ .Major }} image_templates: - - ghcr.io/opentffoundation/opentf:{{ .Version }}-amd64 - - ghcr.io/opentffoundation/opentf:{{ .Version }}-arm64 - - ghcr.io/opentffoundation/opentf:{{ .Version }}-arm - - ghcr.io/opentffoundation/opentf:{{ .Version }}-386 + - ghcr.io/opentofu/opentofu:{{ .Version }}-amd64 + - ghcr.io/opentofu/opentofu:{{ .Version }}-arm64 + - ghcr.io/opentofu/opentofu:{{ .Version }}-arm + - ghcr.io/opentofu/opentofu:{{ .Version }}-386 - - name_template: ghcr.io/opentffoundation/opentf:latest + - name_template: ghcr.io/opentofu/opentofu:latest image_templates: - - ghcr.io/opentffoundation/opentf:{{ .Version }}-amd64 - - ghcr.io/opentffoundation/opentf:{{ .Version }}-arm64 - - ghcr.io/opentffoundation/opentf:{{ .Version }}-arm - - ghcr.io/opentffoundation/opentf:{{ .Version }}-386 + - ghcr.io/opentofu/opentofu:{{ .Version }}-amd64 + - ghcr.io/opentofu/opentofu:{{ .Version }}-arm64 + - ghcr.io/opentofu/opentofu:{{ .Version }}-arm + - ghcr.io/opentofu/opentofu:{{ .Version }}-386 nfpms: - file_name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}' - maintainer: 'https://github.com/orgs/opentffoundation/teams/opentf-core-team' - homepage: https://opentf.org + maintainer: 'https://github.com/orgs/opentofu/teams/opentf-core-team' + homepage: https://opentofu.org description: >- - OpenTF lets you declaratively manage your cloud infrastructure. + OpenTofu lets you declaratively manage your cloud infrastructure. license: "MPL-2.0" formats: - deb diff --git a/Dockerfile b/Dockerfile index 396247ee01..9393cda34e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,8 @@ FROM alpine:3.18 -LABEL maintainer="OpenTF Team " +LABEL maintainer="OpenTofu Team " -COPY opentf /usr/local/bin/opentf +COPY tofu /usr/local/bin/tofu -ENTRYPOINT ["/usr/local/bin/opentf"] +ENTRYPOINT ["/usr/local/bin/tofu"]