I've encountered the problem in the repo: https://github.com/denzp/cargo-wharf
There are several workflows defined:
name: Publish Docker Hub description on: push: tags: - cargo-wharf-frontend-latest - cargo-container-tools-latest
name: Publish the cargo-container-tools on: push: tags: - cargo-container-tools-*
name: Publish the cargo-wharf-frontend on: push: tags: - cargo-wharf-frontend-*
name: Continuous integration on: pull_request: branches: - master push: branches: - master
It works fine with pull requests and commits into master, but I can't manage to trigger tag jobs.
I've tried both lightweight and annotated tags already, no luck with these tags:
cargo-wharf-frontend-v0.1.0-alpha.0 cargo-wharf-frontend-latest cargo-container-tools-v0.2.0-alpha.0 cargo-container-tools-latest
Solved! Solved! Go to Solution.
I forked your repository and tested the tags filter on the fork repository:
I checkout the branch consistent-caching, and made some changes, then I executed the following git commands to add to tags and push the tags the remote.
git commit -a -m "Update README.md - 19110803" git tag cargo-container-tools-ver03 git tag cargo-wharf-frontend-ver03 git push –tags
Then these two tags triggered two workflows as expectation.
This also can work on master branch, but not on experiment-dockerfile branch, because the on experiment-dockerfile branch there are no the YAML files for workflows.
What branch did you checkout to push the tags? Please make sure the YAML files for workflows are existing on the branch.
Thank you @BrightRan for trying this out! It worked for me when I deleted the tags from remote and pushed them again today.