-
Notifications
You must be signed in to change notification settings - Fork 14
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
Still not tagging versions, despite auto_tags:true #11
Comments
Please make sure your workflow is listening push events for tags. name: CI
on:
push:
branches:
- master
tags:
- *
pull_request:
branches:
- master |
Thanks for your reply! In my current configuration, tags are created in the same workflow as the one running If I add Or am I missing anything? |
Yes, you're right. If you add The If you add I suggest switch |
Thanks for the explanation! Ideally, I'd love to publish the docker image of each version with two tags: |
There is a simple solution for it. You can add another step before this action to generate tag list for it. I don't know much about the Now the only question is how to assign this result to Here's an example for you. - id: create_docker_tags
run: |
echo "::set-output name=tags::latest,$(git tag -l --sort=-v:refname | head -1 | cut -c 2-)"
- uses: jerray/publish-docker-action@v1.0.3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: ${{ steps.create_docker_tags.outputs.tags }} |
based on suggestions from jerray/publish-docker-action#11 (comment)
Thanks for the awesome suggestion, jerray! I'm trying that in openwhyd/openwhyd#320 🤞 |
Follow up for PR #306, based on suggestions from jerray/publish-docker-action#11 (comment)
## [1.34.1](v1.34.0...v1.34.1) (2020-04-05) ### Bug Fixes * **release:** attempt to publish tags on docker hub ([#320](#320)) ([bc64ec0](bc64ec0)), closes [#306](#306) [/github.com/jerray/publish-docker-action/issues/11#issuecomment-607077257](https://github.com//github.com/jerray/publish-docker-action/issues/11/issues/issuecomment-607077257)
Hi!
First of all, thanks for this action, we've been using it for months to publish Openwhyd on Docker Hub!
We enabled
auto_tags:true
in the GitHub workflow that runs semantic-release and publish-docker-action, but we still don't see new tags (others thanlatest
) on our Docker hub page, despite the fact that our CI logs shows that semantic-release did create a new tag before running publish-docker-action withauto_tags:true
.Did we forget anything in our configuration? (openwhyd/openwhyd@dca5597, introduced in openwhyd/openwhyd#306)
Thanks in advance for your help!
Adrien
Openwhyd
The text was updated successfully, but these errors were encountered: