Skip to content

Commit 695c03e

Browse files
chore(migration-cli): Stop building the migration-cli (#2424)
* 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]>
1 parent 57aa292 commit 695c03e

File tree

5 files changed

+5
-252
lines changed

5 files changed

+5
-252
lines changed

.github/workflows/release.yml

-29
Original file line numberDiff line numberDiff line change
@@ -72,35 +72,6 @@ jobs:
7272
env:
7373
GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
7474

75-
dockerhub-migration-cli:
76-
runs-on: ubuntu-latest
77-
name: Upload dockerhub readme
78-
needs:
79-
- goreleaser
80-
steps:
81-
- name: Checkout
82-
uses: actions/checkout@v4
83-
- name: Release readme to DockerHub
84-
uses: ms-jpq/sync-dockerhub-readme@v1
85-
env:
86-
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
87-
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
88-
with:
89-
username: ${DOCKER_USERNAME}
90-
password: ${DOCKER_PASSWORD}
91-
repository: thomaspoignant/go-feature-flag-migration-cli
92-
readme: "./cmd/migrationcli/DOCKERHUB_thomaspoignant.md"
93-
- name: Release readme to DockerHub gofeatureflag
94-
uses: ms-jpq/sync-dockerhub-readme@v1
95-
env:
96-
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
97-
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
98-
with:
99-
username: ${DOCKER_USERNAME}
100-
password: ${DOCKER_PASSWORD}
101-
repository: gofeatureflag/go-feature-flag-migration-cli
102-
readme: "./cmd/migrationcli/DOCKERHUB.md"
103-
10475
dockerhub-lint:
10576
runs-on: ubuntu-latest
10677
name: Upload dockerhub readme

.goreleaser.yaml

-163
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,6 @@ before:
77
dist: release
88

99
builds:
10-
- id: go-feature-flag-migration-cli
11-
main: ./cmd/migrationcli
12-
binary: go-feature-flag-migration-cli
13-
env:
14-
- CGO_ENABLED=0
15-
goos:
16-
- darwin
17-
- linux
18-
- windows
19-
goarch:
20-
- 386
21-
- amd64
22-
- arm64
23-
- arm
24-
goarm:
25-
- 6
26-
- 7
27-
ignore:
28-
- goos: darwin
29-
goarch: 386
30-
- goos: linux
31-
goarch: arm
32-
goarm: 6
33-
3410
# DEPRECATED: check go-feature-flag
3511
# We aim to deprecate the name relay proxy, so the main build should be called go-feature-flag
3612
- id: go-feature-flag-relay-proxy
@@ -138,19 +114,6 @@ builds:
138114
- "7"
139115

140116
archives:
141-
- id: go-feature-flag-migration-cli
142-
name_template: "go-feature-flag-migration-cli_\
143-
{{ .Version }}_\
144-
{{- title .Os }}_\
145-
{{- if eq .Arch \"amd64\" }}x86_64\
146-
{{- else if eq .Arch \"386\" }}i386\
147-
{{- else }}{{ .Arch }}{{ end }}\
148-
{{- with .Arm }}v{{ . }}{{ end }}\
149-
{{- with .Mips }}_{{ . }}{{ end }}\
150-
{{- if not (eq .Amd64 \"v1\") }}{{ .Amd64 }}{{ end }}"
151-
builds:
152-
- go-feature-flag-migration-cli
153-
154117
- id: go-feature-flag-editor
155118
name_template: "go-feature-flag-editor_\
156119
{{ .Version }}_\
@@ -395,60 +358,6 @@ dockers:
395358
- "--label=org.opencontainers.image.url=https://gofeatureflag.org/docs/relay_proxy"
396359
- "--label=org.opencontainers.image.version={{ .Version }}"
397360

398-
# migration-cli
399-
- use: buildx
400-
goos: linux
401-
goarch: amd64
402-
ids:
403-
- go-feature-flag-migration-cli
404-
dockerfile: ./cmd/migrationcli/Dockerfile
405-
image_templates:
406-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-amd64
407-
build_flag_templates:
408-
- "--platform=linux/amd64"
409-
- "--label=org.opencontainers.image.created={{ .Date }}"
410-
- "--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"
411-
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
412-
- "--label=org.opencontainers.image.source=https://github.com/thomaspoignant/go-feature-flag"
413-
- "--label=org.opencontainers.image.title=go-feature-flag-migration-cli"
414-
- "--label=org.opencontainers.image.url=https://gofeatureflag.org/docs/tooling/migrate_v0_v1"
415-
- "--label=org.opencontainers.image.version={{ .Version }}"
416-
- use: buildx
417-
goos: linux
418-
goarch: arm64
419-
ids:
420-
- go-feature-flag-migration-cli
421-
dockerfile: ./cmd/migrationcli/Dockerfile
422-
image_templates:
423-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-arm64v8
424-
build_flag_templates:
425-
- "--platform=linux/arm64/v8"
426-
- "--label=org.opencontainers.image.created={{ .Date }}"
427-
- "--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"
428-
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
429-
- "--label=org.opencontainers.image.source=https://github.com/thomaspoignant/go-feature-flag"
430-
- "--label=org.opencontainers.image.title=go-feature-flag-migration-cli"
431-
- "--label=org.opencontainers.image.url=https://gofeatureflag.org/docs/tooling/migrate_v0_v1"
432-
- "--label=org.opencontainers.image.version={{ .Version }}"
433-
- use: buildx
434-
goos: linux
435-
goarch: arm
436-
goarm: 7
437-
ids:
438-
- go-feature-flag-migration-cli
439-
dockerfile: ./cmd/migrationcli/Dockerfile
440-
image_templates:
441-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-armv7
442-
build_flag_templates:
443-
- "--platform=linux/arm/v7"
444-
- "--label=org.opencontainers.image.created={{ .Date }}"
445-
- "--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"
446-
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
447-
- "--label=org.opencontainers.image.source=https://github.com/thomaspoignant/go-feature-flag"
448-
- "--label=org.opencontainers.image.title=go-feature-flag-migration-cli"
449-
- "--label=org.opencontainers.image.url=https://gofeatureflag.org/docs/tooling/migrate_v0_v1"
450-
- "--label=org.opencontainers.image.version={{ .Version }}"
451-
452361
# lint
453362
- use: buildx
454363
goos: linux
@@ -607,56 +516,6 @@ docker_manifests:
607516
- thomaspoignant/go-feature-flag-bookworm:v{{ .RawVersion }}-arm64v8
608517
- thomaspoignant/go-feature-flag-bookworm:v{{ .RawVersion }}-armv7
609518
- thomaspoignant/go-feature-flag-bookworm:v{{ .RawVersion }}-amd64
610-
# migration-cli-legacy
611-
- name_template: thomaspoignant/go-feature-flag-migration-cli:latest
612-
id: go-feature-flag-migration-cli-latest-legacy
613-
image_templates:
614-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-arm64v8
615-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-armv7
616-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-amd64
617-
- name_template: thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}
618-
id: go-feature-flag-migration-cli-tag-legacy
619-
image_templates:
620-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-arm64v8
621-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-armv7
622-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-amd64
623-
- name_template: thomaspoignant/go-feature-flag-migration-cli:v{{ .Major }}
624-
id: go-feature-flag-migration-cli-major-legacy
625-
image_templates:
626-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-arm64v8
627-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-armv7
628-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-amd64
629-
- name_template: thomaspoignant/go-feature-flag-migration-cli:v{{ .Major }}.{{ .Minor }}
630-
id: go-feature-flag-migration-cli-major-minor-legacy
631-
image_templates:
632-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-arm64v8
633-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-armv7
634-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-amd64
635-
# migration-cli
636-
- name_template: gofeatureflag/go-feature-flag-migration-cli:latest
637-
id: go-feature-flag-migration-cli-latest
638-
image_templates:
639-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-arm64v8
640-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-armv7
641-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-amd64
642-
- name_template: gofeatureflag/go-feature-flag-migration-cli:v{{ .RawVersion }}
643-
id: go-feature-flag-migration-cli-tag
644-
image_templates:
645-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-arm64v8
646-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-armv7
647-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-amd64
648-
- name_template: gofeatureflag/go-feature-flag-migration-cli:v{{ .Major }}
649-
id: go-feature-flag-migration-cli-major
650-
image_templates:
651-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-arm64v8
652-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-armv7
653-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-amd64
654-
- name_template: gofeatureflag/go-feature-flag-migration-cli:v{{ .Major }}.{{ .Minor }}
655-
id: go-feature-flag-migration-cli-major-minor
656-
image_templates:
657-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-arm64v8
658-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-armv7
659-
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-amd64
660519
# lint-legacy
661520
- name_template: thomaspoignant/go-feature-flag-lint:latest
662521
id: go-feature-flag-lint-latest-legacy
@@ -709,17 +568,6 @@ docker_manifests:
709568
- thomaspoignant/go-feature-flag-lint:v{{ .RawVersion }}-amd64
710569

711570
brews:
712-
- ids:
713-
- go-feature-flag-migration-cli
714-
name: go-feature-flag-migration-cli
715-
repository:
716-
owner: thomaspoignant
717-
name: homebrew-tap
718-
branch: master
719-
caveats: "A migration command line to move your feature flag configuration file from format GO Feature Flag v0.X to v1.X"
720-
homepage: "https://gofeatureflag.org/docs/tooling/migrate_v0_v1"
721-
description: "A migration command line to move your feature flag configuration file from format GO Feature Flag v0.X to v1.X"
722-
skip_upload: auto
723571
# DEPRECATED: check go-feature-flag
724572
- ids:
725573
- go-feature-flag-relay-proxy
@@ -756,17 +604,6 @@ brews:
756604
skip_upload: auto
757605

758606
scoops:
759-
760-
- url_template: https://github.com/thomaspoignant/go-feature-flag/releases/download/{{ .Tag }}/{{ .ArtifactName }}
761-
ids: [go-feature-flag-migration-cli ]
762-
name: go-feature-flag-migration-cli
763-
repository:
764-
owner: go-feature-flag
765-
name: scoop
766-
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
767-
homepage: "https://gofeatureflag.org/docs/tooling/migrate_v0_v1"
768-
license: MIT
769-
770607
# DEPRECATED: check go-feature-flag
771608
- url_template: https://github.com/thomaspoignant/go-feature-flag/releases/download/{{ .Tag }}/{{ .ArtifactName }}
772609
ids: [go-feature-flag-relay-proxy ]

cmd/migrationcli/DOCKERHUB.md

-29
This file was deleted.

cmd/migrationcli/DOCKERHUB_thomaspoignant.md

-31
This file was deleted.

website/docs/tooling/migrate_v0_v1.md

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ sidebar_position: 90
33
description: How to migrate from v0.x.x to v1.x.x
44
---
55

6+
---
7+
**⚠️ Version `v1.35.0` will be the last version of the cli.**.
8+
**Why? Because it is feature complete and because it has been decided to stop supporting `v0.x.x` format.**
9+
---
10+
611
# Migrate from v0.x.x to v1.x.x
712

813
:::info

0 commit comments

Comments
 (0)