Docker and CI/CD · Junior · Question 66 of 75
How can a pipeline deploy only released versions?
- 1Deploy from whichever branch was pushed last
- ✓Correct answer: Trigger the deploy job on version tags like
v1.2.0 - 3Run the deploy job only on pull requests
Explanation
For example on: push: tags: ['v*'] in GitHub Actions. The tag also names the image, so the deployed version is easy to trace.