[GH-ISSUE #489] version tag for latest version #94

Closed
opened 2026-03-03 12:08:14 +03:00 by kerem · 4 comments
Owner

Originally created by @avihaybar on GitHub (Apr 27, 2021).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/489

Hi, great docker! we found it very useful.

However, one thing we didn't find on DockerHub is a version tag for the latest version.
(we prefer to pin down a version and not use the 'latest' tag).
is it possible create such a tag (the same way we could pull v1.21.2)

Originally created by @avihaybar on GitHub (Apr 27, 2021). Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/489 Hi, great docker! we found it very useful. However, one thing we didn't find on DockerHub is a version tag for the latest version. (we prefer to pin down a version and not use the 'latest' tag). is it possible create such a tag (the same way we could pull v1.21.2)
kerem 2026-03-03 12:08:14 +03:00
  • closed this issue
  • added the
    bug
    docker
    labels
Author
Owner

@fsouza commented on GitHub (Apr 27, 2021):

🤔 GitHub Actions should be doing that automatically. Will investigate what's going on and manually push.

<!-- gh-comment-id:827555220 --> @fsouza commented on GitHub (Apr 27, 2021): 🤔 GitHub Actions should be doing that automatically. Will investigate what's going on and manually push.
Author
Owner

@fsouza commented on GitHub (Apr 27, 2021):

Ok, I see what the issue is, we're doing a naked docker push and that no longer pushes all tags. Will fix the script and manually push the tags.

<!-- gh-comment-id:827598501 --> @fsouza commented on GitHub (Apr 27, 2021): Ok, I see what the issue is, we're doing a naked `docker push` and that no longer pushes all tags. Will fix the script and manually push the tags.
Author
Owner

@fsouza commented on GitHub (Apr 27, 2021):

This is now fixed. All tags are pushed and going forward GitHub Actions should do it for us properly.

If anyone is interested in auditing what I did, this is the script I used for each tag:

% cat ~/regen-tag.bash
#!/usr/bin/env bash

set -euo pipefail

tag=${1}

git checkout "${tag}"
env GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build
env GITHUB_REF="refs/tags/${tag}" bash ci/docker-build.sh

And these are the tags I pushed:

% cat ~/tags
v1.22.0
v1.22.1
v1.22.2
v1.22.3
v1.22.4
v1.22.5
v1.22.6
v1.22.7
v1.23.0
v1.23.1
v1.24.0

To run the script:

% cat ~/tags | xargs -I @ ~/regen-tag.bash @
<!-- gh-comment-id:827610181 --> @fsouza commented on GitHub (Apr 27, 2021): This is now fixed. All tags are pushed and going forward GitHub Actions should do it for us properly. If anyone is interested in auditing what I did, this is the script I used for each tag: ``` % cat ~/regen-tag.bash #!/usr/bin/env bash set -euo pipefail tag=${1} git checkout "${tag}" env GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build env GITHUB_REF="refs/tags/${tag}" bash ci/docker-build.sh ``` And these are the tags I pushed: ``` % cat ~/tags v1.22.0 v1.22.1 v1.22.2 v1.22.3 v1.22.4 v1.22.5 v1.22.6 v1.22.7 v1.23.0 v1.23.1 v1.24.0 ``` To run the script: ``` % cat ~/tags | xargs -I @ ~/regen-tag.bash @ ```
Author
Owner

@avihaybar commented on GitHub (Apr 27, 2021):

Thanks!
Really appreciate it

<!-- gh-comment-id:827675579 --> @avihaybar commented on GitHub (Apr 27, 2021): Thanks! Really appreciate it
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/fake-gcs-server#94
No description provided.