CodePipeline based on Git tag

-1

Hello AWS humans, I want to execute Codepipeline based on Git tag I know Codepipeline doesn't support Git Tag, Its possible to Git Branch. So I set source to Amazon S3, not CodeCommit. And S3 have git tag based source zip. So when I execute CodeBuild, it does work! But I have a problem about Rollback. How can i rollback this git tag codepipeline?

已提問 9 個月前檢視次數 546 次
3 個答案
1

What do you mean by "GIT TAG is not supported"?

CodePipeline is running based on CodeBuild which is based on CodeCommit (git repo), this is AWS based scenario.

So, you can perform any GIT commands you want in a buildspec + CodeCommit supports Git Tag

profile picture
已回答 9 個月前
  • I think he means to say when your initiator is AWS Codepipeline, git tag is not supported in that case. Yes in Codebuild, git tag is supported but not sure how to use that with Codepipeline, as you need to do ECS deploy after codebuild that is supported by Codepipeline, I mean yes you can do those same steps in Codebuild as well but ECS deploy might need some extra work.

    I think the biggest hurdle for DevOps is to allow Developers to be in charge of the deployment process and when they want to switch between different version tags or different branches for deployments. I have seem this, Jenkins made it real easier with the help of Build with Parameter where you select the environment from a dropdown and select the branch/tag using an input text field and then proceeed with release.

    Something like this might solve most of the issues usually Gitflow based startups are complaining about.

0
已接受的答案

Hey

You are correct, right now tags are not supported There was a similar question here.

Maybe you can also implement something like this for git tags? https://aws.amazon.com/blogs/devops/multi-branch-codepipeline-strategy-with-event-driven-architecture/

profile picture
已回答 9 個月前
profile picture
專家
已審閱 1 個月前
0
已回答 4 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南