mirror of https://github.com/status-im/consul.git
* Config changes to use backport-assistant with lts support Co-authored-by: Michael Zalimeni <michael.zalimeni@hashicorp.com> --------- Co-authored-by: claire labry <claire@hashicorp.com> Co-authored-by: Michael Zalimeni <michael.zalimeni@hashicorp.com>
This commit is contained in:
parent
093618d923
commit
f51d08052b
|
@ -19,7 +19,7 @@ jobs:
|
||||||
backport:
|
backport:
|
||||||
if: github.event.pull_request.merged
|
if: github.event.pull_request.merged
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: hashicorpdev/backport-assistant:0.3.4
|
container: hashicorpdev/backport-assistant:0.4.0
|
||||||
steps:
|
steps:
|
||||||
- name: Run Backport Assistant for release branches
|
- name: Run Backport Assistant for release branches
|
||||||
run: |
|
run: |
|
||||||
|
@ -28,10 +28,24 @@ jobs:
|
||||||
BACKPORT_LABEL_REGEXP: "backport/(?P<target>\\d+\\.\\d+)"
|
BACKPORT_LABEL_REGEXP: "backport/(?P<target>\\d+\\.\\d+)"
|
||||||
BACKPORT_TARGET_TEMPLATE: "release/{{.target}}.x"
|
BACKPORT_TARGET_TEMPLATE: "release/{{.target}}.x"
|
||||||
GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||||
|
ENABLE_VERSION_MANIFESTS: true
|
||||||
|
backport-ent:
|
||||||
|
if: github.event.pull_request.merged && contains(join(github.event.pull_request.labels.*.name), 'backport/ent')
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: hashicorpdev/backport-assistant:0.4.0
|
||||||
|
steps:
|
||||||
|
- name: Trigger backport for Enterprise
|
||||||
|
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3.0.0
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||||
|
repository: hashicorp/consul-enterprise
|
||||||
|
event-type: ent-backport
|
||||||
|
client-payload: ${{ toJson(github.event) }}
|
||||||
handle-failure:
|
handle-failure:
|
||||||
needs:
|
needs:
|
||||||
- backport
|
- backport
|
||||||
if: always() && needs.backport.result == 'failure'
|
- backport-ent
|
||||||
|
if: always() && (needs.backport.result == 'failure' || needs.backport-ent.result == 'failure')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Comment on PR
|
- name: Comment on PR
|
||||||
|
@ -41,3 +55,4 @@ jobs:
|
||||||
-X POST \
|
-X POST \
|
||||||
-d "{ \"body\": \"${github_message}\"}" \
|
-d "{ \"body\": \"${github_message}\"}" \
|
||||||
"https://api.github.com/repos/${GITHUB_REPOSITORY}/issues/${{ github.event.pull_request.number }}/comments"
|
"https://api.github.com/repos/${GITHUB_REPOSITORY}/issues/${{ github.event.pull_request.number }}/comments"
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
# Copyright (c) HashiCorp, Inc.
|
||||||
|
# SPDX-License-Identifier: BUSL-1.1
|
||||||
|
|
||||||
|
# This manifest file describes active releases and is consumed by the backport tooling.
|
||||||
|
|
||||||
|
schema = 1
|
||||||
|
active_versions {
|
||||||
|
version "1.18" {
|
||||||
|
ce_active = true
|
||||||
|
lts = true
|
||||||
|
}
|
||||||
|
version "1.17" {}
|
||||||
|
version "1.16" {}
|
||||||
|
version "1.15" {
|
||||||
|
lts = true
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue