kubo/bin
Oli Evans 3106e5f911
chore: dont docker tag rc as latest
- add guard for rc releases; publish them to docker hub with the matching git tag
- make the semver regex stricter and only publish as latest when a full semver tag with no pre-release suffix is the name of the git tag.
- add `release` tag as an alias of `latest` as per https://github.com/ipfs/go-ipfs/issues/3999#issuecomment-742228981

Tested manually as the push-docker-tag.sh script is set up for it:
```shell
./push-docker-tags.sh $(date -u +%F) testingsha release v0.9.0-test dry
Nothing to do. No docker tag defined for branch: release, tag: v0.9.0-test

./push-docker-tags.sh $(date -u +%F) testingsha release v0.9.0-rc1 dry
DRY RUN! I would have tagged and pushed the following...
docker tag ipfs/go-ipfs:wip ipfs/go-ipfs:v0.9.0-rc1
docker push ipfs/go-ipfs:v0.9.0-rc1

./push-docker-tags.sh $(date -u +%F) testingsha release v0.9.0 dry
DRY RUN! I would have tagged and pushed the following...
docker tag ipfs/go-ipfs:wip ipfs/go-ipfs:v0.9.0
docker push ipfs/go-ipfs:v0.9.0
DRY RUN! I would have tagged and pushed the following...
docker tag ipfs/go-ipfs:wip ipfs/go-ipfs:latest
docker push ipfs/go-ipfs:latest
DRY RUN! I would have tagged and pushed the following...
docker tag ipfs/go-ipfs:wip ipfs/go-ipfs:release
docker push ipfs/go-ipfs:release
```

fixes #3999

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
2021-04-06 16:39:22 +01:00
..
archive-branches.sh misc: add ai-mirror to excluded branches 2018-03-09 21:50:27 +01:00
check_go_version Fix typos and cleanup 2020-04-20 22:00:01 +03:00
check_version build(Makefile): set supported platforms by go-version 2021-02-18 20:28:54 -08:00
collect-profiles.sh fix: allow profiling of remote node via https 2020-01-16 14:19:58 +00:00
container_daemon Add swarm key variables to container daemon 2019-08-02 16:28:12 -03:00
dist_get GOCC implementation & fix in make & build scripts 2019-04-30 21:22:43 -04:00
gencmdref cmdrefgen to generate command ref 2015-02-16 13:53:07 -08:00
graphmd diag/net: graphme restyling 2015-01-16 02:11:36 -08:00
ipns-republish simple ipns-republish script stopgap 2015-05-10 09:23:12 -04:00
maketarball.sh fix vendoring dependencies when building the source tarball 2019-05-17 12:34:11 -07:00
mkreleaselog feat: support the mailmap file in mkreleasenotes 2020-05-26 21:46:45 -07:00
push-docker-tags.sh chore: dont docker tag rc as latest 2021-04-06 16:39:22 +01:00
Rules.mk build: use protoc-gen-* from gomod 2019-06-05 10:57:43 -07:00
test-go-fmt fix: go doesn't allow gnu short flags 2021-02-08 12:49:51 -08:00