-
Notifications
You must be signed in to change notification settings - Fork 8
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
LTS Track for Jenkins Snap #88
base: lts
Are you sure you want to change the base?
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
name: Release | ||
|
||
on: | ||
# Run the workflow each time new commits are pushed to the candidate branch. | ||
# Run the workflow each time new commits are pushed to the lts branch. | ||
push: | ||
branches: [ "candidate" ] | ||
branches: [ "lts" ] | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
|
@@ -27,16 +27,16 @@ jobs: | |
uses: snapcrafters/ci/get-architectures@main | ||
|
||
release: | ||
name: 🚢 Release to latest/candidate | ||
name: 🚢 Release to latest/lts | ||
needs: get-architectures | ||
runs-on: ubuntu-latest | ||
environment: "Candidate Branch" | ||
environment: "LTS Branch" | ||
strategy: | ||
matrix: | ||
architecture: ${{ fromJSON(needs.get-architectures.outputs.architectures-list) }} | ||
steps: | ||
- name: 🚢 Release to latest/candidate | ||
uses: snapcrafters/ci/release-to-candidate@main | ||
- name: 🚢 Release to latest/lts | ||
uses: snapcrafters/ci/release-to-lts@main | ||
jnsgruk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
with: | ||
architecture: ${{ matrix.architecture }} | ||
launchpad-token: ${{ secrets.LP_BUILD_SECRET }} | ||
|
@@ -46,7 +46,7 @@ jobs: | |
call-for-testing: | ||
name: 📣 Create call for testing | ||
needs: [release, get-architectures] | ||
environment: "Candidate Branch" | ||
environment: "LTS Branch" | ||
runs-on: ubuntu-latest | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Needs a channel argument in most of the steps, per: https://github.com/snapcrafters/sublime-merge/blob/3e350971a6a3394a10546d39963076b3ad9c3598/.github/workflows/release-to-candidate.yml#L46 |
||
outputs: | ||
issue-number: ${{ steps.issue.outputs.issue-number }} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,14 +14,14 @@ concurrency: | |
jobs: | ||
sync: | ||
name: 🔄 Sync version with upstream | ||
environment: "Candidate Branch" | ||
environment: "LTS Branch" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🔄 Sync version with upstream | ||
uses: snapcrafters/ci/sync-version@main | ||
with: | ||
token: ${{ secrets.SNAPCRAFTERS_BOT_COMMIT }} | ||
update-script: | | ||
# Grabbing latest release | ||
VERSION=$(curl -sL https://api.github.com/repos/jenkinsci/jenkins/releases | jq .[].tag_name -r | grep -v rc | sort -r | head -n 1 | cut -d "-" -f2) | ||
# Grabbing latest lts release | ||
VERSION=$(curl -sL https://api.github.com/repos/jenkinsci/jenkins/releases | jq .[].tag_name -r | grep -v rc | sort -r | grep "2.440" | head -n1 | cut -d "-" -f2) | ||
sed -i 's/^\(version: \).*$/\1'"'$VERSION'"'/' snap/snapcraft.yaml | ||
Comment on lines
14
to
27
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file can be removed, and you'll need to add another stanza to the update script on the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file can also be removed, you'll need to delete this on this branch, then update the promotion workflow on
candidate