Skip to content

Commit

Permalink
Update image name in goreleaser (#2158)
Browse files Browse the repository at this point in the history
* Rename docker repository

* More image updates
  • Loading branch information
simonswine authored Jul 21, 2023
1 parent 54a30ee commit 3ee46b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/weekly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ jobs:
IMAGE_AMMENDS=()
# the grep needs to remove an extra v, which is in the git tag, but not in the image tag
for image in $(docker images --format '{{.Repository}}:{{.Tag}}' | grep "grafana/phlare:${GORELEASER_CURRENT_TAG:1}-"); do
for image in $(docker images --format '{{.Repository}}:{{.Tag}}' | grep "grafana/pyroscope:${GORELEASER_CURRENT_TAG:1}-"); do
new_image="${image/0.0.0-/}"
docker tag "${image}" "${new_image}"
docker push "${new_image}"
IMAGE_AMMENDS+=( "--amend" "${new_image}" )
done
docker manifest create "grafana/phlare:${WEEKLY_IMAGE_TAG}" "${IMAGE_AMMENDS[@]}"
docker manifest push "grafana/phlare:${WEEKLY_IMAGE_TAG}"
docker manifest create "grafana/pyroscope:${WEEKLY_IMAGE_TAG}" "${IMAGE_AMMENDS[@]}"
docker manifest push "grafana/pyroscope:${WEEKLY_IMAGE_TAG}"
- name: Push git tag for weekly release
run: git push https://grafanabot:${{ secrets.GH_BOT_ACCESS_TOKEN }}@github.com/grafana/pyroscope.git "${WEEKLY_IMAGE_TAG}"
6 changes: 3 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project_name: phlare # TODO: Change when we change the image repository
project_name: pyroscope
before:
hooks:
# This hook ensures that goreleaser uses the correct go version for a Phlare release
Expand Down Expand Up @@ -176,10 +176,10 @@ release:
## Docker Images
- [grafana/phlare](https://hub.docker.com/r/grafana/phlare/tags)
- [grafana/pyroscope](https://hub.docker.com/r/grafana/pyroscope/tags)
```bash
docker pull docker.io/grafana/phlare:{{ trimprefix .Tag "v" }}
docker pull docker.io/grafana/pyroscope:{{ trimprefix .Tag "v" }}
```
ids:
Expand Down

0 comments on commit 3ee46b9

Please sign in to comment.