cirrus-ci-docs icon indicating copy to clipboard operation
cirrus-ci-docs copied to clipboard

Create builds on creation of a release

Open fkorotkov opened this issue 6 years ago • 8 comments

Expected Behavior

When a release is created from an existing tag Cirrus CI should create a new build

Real Behavior

Build is only created when a new tag and a new release are created simultaniously

Related Info

See #451 for details

fkorotkov avatar Sep 14 '19 14:09 fkorotkov

Hey,

Possibly related (I can open a new issue if not): The documentation for $CIRRUS_TAG makes it sound like a separate build is triggered when the new tag is pushed. I was wanting to check this variable from a task, to alter behavior e.g. with artifact and upload filenames/locations. But it seems if tags are pushed after the release-commit-containing PR merges, no build has $CIRRUS_TAG set (or I couldn't find it). Same problem?

cevich avatar Oct 03 '19 18:10 cevich

@cevich what is "release-commit-containing PR" in your case? You merge a PR and then create a tag?

fkorotkov avatar Oct 03 '19 19:10 fkorotkov

@fkorotkov well, not me personally, but yes there will be a PR with a "release version X.Y.Z" commit. The PR may have more than one commit, as well, e.g. "update release notes". Sometime later, a sha gets tagged. Worse, humans are involved (yuck!) so there's no predicting this workflow will even be consistent :confounded:

cevich avatar Oct 03 '19 19:10 cevich

It seems it should work as expected: once you create a tag, there will be a push webhook event that you've pushed refs/tags/X.Y.Z and Cirrus will create an additional build for X.Y.Z with $CIRRUS_TAG == 'X.Y.Z'.

fkorotkov avatar Oct 03 '19 19:10 fkorotkov

Hmmm, so it's possible I'm just not seeing it. I looked under https://cirrus-ci.com/github/<owner>/<repo>/master and also w/o master. Would the build show up somewhere else?

Either way...sounds like I'm having a different issue from this one.

cevich avatar Oct 03 '19 19:10 cevich

@cevich creation time of such tag build will be timestamp of the last change on the branch. You can try a direct link: mmm, so it's possible I'm just not seeing it. I looked under https://cirrus-ci.com/github/<owner>/<repo>/<tag>

fkorotkov avatar Oct 03 '19 21:10 fkorotkov

Hmm, nothing at all shows up there. I'll open a new issue for this since it's not related to this one...#481

cevich avatar Oct 04 '19 14:10 cevich

Hey, I am trying to understand why this task didn't upload to it's release:

https://cirrus-ci.com/task/5980768460603392 https://cirrus-ci.com/github/adventuregamestudio/ags/v.3.5.1.8

https://github.com/adventuregamestudio/ags/blob/14bf1498e2a50f94f3ca9d376aedd9f4b351da4e/.cirrus.yml#L365

Seeing this bug report is related from a bug report related to our project, is it related to different time of creation of tag and release? (I am here from following #451 )

The person that created the release confirmed me it was done entirely on GitHub Release web interface, so I don't know if it could fail similarly even in this case or if it's a different issue.

ericoporto avatar Jun 22 '21 15:06 ericoporto