Skip to content
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

Implement selective pulling for building tagged release snaps #187

Merged
merged 1 commit into from
Mar 13, 2019

Conversation

brlin-tw
Copy link
Contributor

@brlin-tw brlin-tw commented Mar 13, 2019

This patch re-implements the pull step that will only build development snapshots snaps if the latest tagged release has been promoted to the stable channel. This ensures that there's always a revision of the stable release snap available in the edge channel for the publisher to promote to stable as currently the automated build infrastructure only supports build on code push (but not new tagged releases) at this time.

The mechanism is inspired from the snapcrafters adopted snaps workflow, documented in the following forum topic:

The automatic build and pubish process of snaps owned by the Snapcrafters - doc - snapcraft.io

Refer the following forum topic for a possible solution proposal of this problem:

Proposal: Allow overriding the source-tag property for an one-time build in the build infrastructure - snapcraft - snapcraft.io

Signed-off-by: 林博仁(Buo-ren Lin) Buo.Ren.Lin@gmail.com

This patch re-implements the pull step that will only build
development snapshots snaps if the latest tagged release has been
promoted to the stable channel.  This ensures that there's always
a revision of the stable release snap available in the edge channel
for the publisher to promote to stable as currently the build
infrastructure only supports build on code push (but not new tagged
releases) at this time.

The implementation is inspired from the snapcrafters adopted snaps workflow,
documented in the following forum topic:

    The automatic build and pubish process of snaps owned by the Snapcrafters - doc - snapcraft.io
    https://forum.snapcraft.io/t/autopublishing-of-snapcrafters-organizations-snaps-how/7954/2

Refer the following forum topic for a possible solution proposal of this problem:

    Proposal: Allow overriding the source-tag property for an one-time build in the build infrastructure - snapcraft - snapcraft.io
    https://forum.snapcraft.io/t/proposal-allow-overriding-the-source-tag-property-for-an-one-time-build-in-the-build-infrastructure/10303

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
@mikf mikf merged commit 8aaa4ed into mikf:master Mar 13, 2019
@brlin-tw brlin-tw deleted the patch/impl-snap-selective-pull branch March 14, 2019 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants