Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drone(docker-driver): Fetch tags before pushing image during release #10671

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

kavirajk
Copy link
Contributor

backport #10664 to 2.9.x branch

…10664)

**What this PR does / why we need it**:
We realized, loki-docker-driver image was not being pushed after 2.8.2.
And looking into it's drone pipeline and comparing it with other steps,
docker-driver step is not fetching the tags,[ thus the final hash
calculated to push is some HEAD
branch.](https://github.com/grafana/loki/blob/main/tools/image-tag#L13-L14)

e.g: even if we have tag 2.9.1, it pushes only with latest HEAD commit
hash.

This PR fixes it.
![Screenshot 2023-09-21 at 08 14
09](https://github.com/grafana/loki/assets/3735252/31e4d031-d22f-4bed-8aa7-3e6136a6f10c)
![Screenshot 2023-09-21 at 08 14
24](https://github.com/grafana/loki/assets/3735252/1742b821-58a3-4ef5-96ae-80304126b8cb)
![Screenshot 2023-09-21 at 08 14
42](https://github.com/grafana/loki/assets/3735252/5e060eeb-e57a-4124-b29b-bc8ce73cc6d9)

**Which issue(s) this PR fixes**:
Fixes #<issue number>

**Special notes for your reviewer**:
I would prefer this instead of
#10663. Because that would make
fetching tags more repetitive in all the drone tasks (can also be
expensive in terms of running time if we put all together)

**Checklist**
- [x] Reviewed the
[`CONTRIBUTING.md`](https://github.com/grafana/loki/blob/main/CONTRIBUTING.md)
guide (**required**)

---------

Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
(cherry picked from commit 8721e41)
@kavirajk kavirajk requested a review from a team as a code owner September 21, 2023 12:46
@kavirajk kavirajk enabled auto-merge (squash) September 21, 2023 12:46
@kavirajk kavirajk merged commit 37b052a into release-2.9.x Sep 21, 2023
@kavirajk kavirajk deleted the backport-10664-to-release-2.9.x branch September 21, 2023 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants