Skip to content

Commit

Permalink
chore(migration-cli): Stop building the migration-cli (#2424)
Browse files Browse the repository at this point in the history
* chore(migration-cli): Stop building the migration-cli

Signed-off-by: Thomas Poignant <[email protected]>

* Add documentation

Signed-off-by: Thomas Poignant <[email protected]>

---------

Signed-off-by: Thomas Poignant <[email protected]>
  • Loading branch information
thomaspoignant authored Sep 26, 2024
1 parent 57aa292 commit 695c03e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 252 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,35 +72,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}

dockerhub-migration-cli:
runs-on: ubuntu-latest
name: Upload dockerhub readme
needs:
- goreleaser
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Release readme to DockerHub
uses: ms-jpq/sync-dockerhub-readme@v1
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
with:
username: ${DOCKER_USERNAME}
password: ${DOCKER_PASSWORD}
repository: thomaspoignant/go-feature-flag-migration-cli
readme: "./cmd/migrationcli/DOCKERHUB_thomaspoignant.md"
- name: Release readme to DockerHub gofeatureflag
uses: ms-jpq/sync-dockerhub-readme@v1
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
with:
username: ${DOCKER_USERNAME}
password: ${DOCKER_PASSWORD}
repository: gofeatureflag/go-feature-flag-migration-cli
readme: "./cmd/migrationcli/DOCKERHUB.md"

dockerhub-lint:
runs-on: ubuntu-latest
name: Upload dockerhub readme
Expand Down
163 changes: 0 additions & 163 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,6 @@ before:
dist: release

builds:
- id: go-feature-flag-migration-cli
main: ./cmd/migrationcli
binary: go-feature-flag-migration-cli
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
goarch:
- 386
- amd64
- arm64
- arm
goarm:
- 6
- 7
ignore:
- goos: darwin
goarch: 386
- goos: linux
goarch: arm
goarm: 6

# DEPRECATED: check go-feature-flag
# We aim to deprecate the name relay proxy, so the main build should be called go-feature-flag
- id: go-feature-flag-relay-proxy
Expand Down Expand Up @@ -138,19 +114,6 @@ builds:
- "7"

archives:
- id: go-feature-flag-migration-cli
name_template: "go-feature-flag-migration-cli_\
{{ .Version }}_\
{{- title .Os }}_\
{{- if eq .Arch \"amd64\" }}x86_64\
{{- else if eq .Arch \"386\" }}i386\
{{- else }}{{ .Arch }}{{ end }}\
{{- with .Arm }}v{{ . }}{{ end }}\
{{- with .Mips }}_{{ . }}{{ end }}\
{{- if not (eq .Amd64 \"v1\") }}{{ .Amd64 }}{{ end }}"
builds:
- go-feature-flag-migration-cli

- id: go-feature-flag-editor
name_template: "go-feature-flag-editor_\
{{ .Version }}_\
Expand Down Expand Up @@ -395,60 +358,6 @@ dockers:
- "--label=org.opencontainers.image.url=https://gofeatureflag.org/docs/relay_proxy"
- "--label=org.opencontainers.image.version={{ .Version }}"

# migration-cli
- use: buildx
goos: linux
goarch: amd64
ids:
- go-feature-flag-migration-cli
dockerfile: ./cmd/migrationcli/Dockerfile
image_templates:
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-amd64
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{ .Date }}"
- "--label=org.opencontainers.image.description=A migration command line to move your feature flag configuration file from format GO Feature Flag v0.X to v1.X"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.source=https://github.com/thomaspoignant/go-feature-flag"
- "--label=org.opencontainers.image.title=go-feature-flag-migration-cli"
- "--label=org.opencontainers.image.url=https://gofeatureflag.org/docs/tooling/migrate_v0_v1"
- "--label=org.opencontainers.image.version={{ .Version }}"
- use: buildx
goos: linux
goarch: arm64
ids:
- go-feature-flag-migration-cli
dockerfile: ./cmd/migrationcli/Dockerfile
image_templates:
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-arm64v8
build_flag_templates:
- "--platform=linux/arm64/v8"
- "--label=org.opencontainers.image.created={{ .Date }}"
- "--label=org.opencontainers.image.description=A migration command line to move your feature flag configuration file from format GO Feature Flag v0.X to v1.X"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.source=https://github.com/thomaspoignant/go-feature-flag"
- "--label=org.opencontainers.image.title=go-feature-flag-migration-cli"
- "--label=org.opencontainers.image.url=https://gofeatureflag.org/docs/tooling/migrate_v0_v1"
- "--label=org.opencontainers.image.version={{ .Version }}"
- use: buildx
goos: linux
goarch: arm
goarm: 7
ids:
- go-feature-flag-migration-cli
dockerfile: ./cmd/migrationcli/Dockerfile
image_templates:
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-armv7
build_flag_templates:
- "--platform=linux/arm/v7"
- "--label=org.opencontainers.image.created={{ .Date }}"
- "--label=org.opencontainers.image.description=A migration command line to move your feature flag configuration file from format GO Feature Flag v0.X to v1.X"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.source=https://github.com/thomaspoignant/go-feature-flag"
- "--label=org.opencontainers.image.title=go-feature-flag-migration-cli"
- "--label=org.opencontainers.image.url=https://gofeatureflag.org/docs/tooling/migrate_v0_v1"
- "--label=org.opencontainers.image.version={{ .Version }}"

# lint
- use: buildx
goos: linux
Expand Down Expand Up @@ -607,56 +516,6 @@ docker_manifests:
- thomaspoignant/go-feature-flag-bookworm:v{{ .RawVersion }}-arm64v8
- thomaspoignant/go-feature-flag-bookworm:v{{ .RawVersion }}-armv7
- thomaspoignant/go-feature-flag-bookworm:v{{ .RawVersion }}-amd64
# migration-cli-legacy
- name_template: thomaspoignant/go-feature-flag-migration-cli:latest
id: go-feature-flag-migration-cli-latest-legacy
image_templates:
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-arm64v8
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-armv7
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-amd64
- name_template: thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}
id: go-feature-flag-migration-cli-tag-legacy
image_templates:
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-arm64v8
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-armv7
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-amd64
- name_template: thomaspoignant/go-feature-flag-migration-cli:v{{ .Major }}
id: go-feature-flag-migration-cli-major-legacy
image_templates:
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-arm64v8
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-armv7
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-amd64
- name_template: thomaspoignant/go-feature-flag-migration-cli:v{{ .Major }}.{{ .Minor }}
id: go-feature-flag-migration-cli-major-minor-legacy
image_templates:
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-arm64v8
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-armv7
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-amd64
# migration-cli
- name_template: gofeatureflag/go-feature-flag-migration-cli:latest
id: go-feature-flag-migration-cli-latest
image_templates:
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-arm64v8
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-armv7
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-amd64
- name_template: gofeatureflag/go-feature-flag-migration-cli:v{{ .RawVersion }}
id: go-feature-flag-migration-cli-tag
image_templates:
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-arm64v8
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-armv7
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-amd64
- name_template: gofeatureflag/go-feature-flag-migration-cli:v{{ .Major }}
id: go-feature-flag-migration-cli-major
image_templates:
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-arm64v8
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-armv7
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-amd64
- name_template: gofeatureflag/go-feature-flag-migration-cli:v{{ .Major }}.{{ .Minor }}
id: go-feature-flag-migration-cli-major-minor
image_templates:
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-arm64v8
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-armv7
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-amd64
# lint-legacy
- name_template: thomaspoignant/go-feature-flag-lint:latest
id: go-feature-flag-lint-latest-legacy
Expand Down Expand Up @@ -709,17 +568,6 @@ docker_manifests:
- thomaspoignant/go-feature-flag-lint:v{{ .RawVersion }}-amd64

brews:
- ids:
- go-feature-flag-migration-cli
name: go-feature-flag-migration-cli
repository:
owner: thomaspoignant
name: homebrew-tap
branch: master
caveats: "A migration command line to move your feature flag configuration file from format GO Feature Flag v0.X to v1.X"
homepage: "https://gofeatureflag.org/docs/tooling/migrate_v0_v1"
description: "A migration command line to move your feature flag configuration file from format GO Feature Flag v0.X to v1.X"
skip_upload: auto
# DEPRECATED: check go-feature-flag
- ids:
- go-feature-flag-relay-proxy
Expand Down Expand Up @@ -756,17 +604,6 @@ brews:
skip_upload: auto

scoops:

- url_template: https://github.com/thomaspoignant/go-feature-flag/releases/download/{{ .Tag }}/{{ .ArtifactName }}
ids: [go-feature-flag-migration-cli ]
name: go-feature-flag-migration-cli
repository:
owner: go-feature-flag
name: scoop
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://gofeatureflag.org/docs/tooling/migrate_v0_v1"
license: MIT

# DEPRECATED: check go-feature-flag
- url_template: https://github.com/thomaspoignant/go-feature-flag/releases/download/{{ .Tag }}/{{ .ArtifactName }}
ids: [go-feature-flag-relay-proxy ]
Expand Down
29 changes: 0 additions & 29 deletions cmd/migrationcli/DOCKERHUB.md

This file was deleted.

31 changes: 0 additions & 31 deletions cmd/migrationcli/DOCKERHUB_thomaspoignant.md

This file was deleted.

5 changes: 5 additions & 0 deletions website/docs/tooling/migrate_v0_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ sidebar_position: 90
description: How to migrate from v0.x.x to v1.x.x
---

---
**⚠️ Version `v1.35.0` will be the last version of the cli.**.
**Why? Because it is feature complete and because it has been decided to stop supporting `v0.x.x` format.**
---

# Migrate from v0.x.x to v1.x.x

:::info
Expand Down

0 comments on commit 695c03e

Please sign in to comment.