mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 21:11:08 +02:00
.github: check out with a specific channel name
When checking out into a branch name, append `-${CHANNEL}` to the name, so the branch can be distinguished from each other. To do that, make every Github actions yaml file pass in its corresponding `CHANNEL` variable.
This commit is contained in:
parent
ee727b639f
commit
e48aa048a2
@ -4,7 +4,7 @@ set -euo pipefail
|
||||
|
||||
. .github/workflows/common.sh
|
||||
|
||||
checkout_branches "containerd-${VERSION_NEW}"
|
||||
checkout_branches "containerd-${VERSION_NEW}-${CHANNEL}"
|
||||
|
||||
pushd "${SDK_OUTER_SRCDIR}/third_party/coreos-overlay" >/dev/null || exit
|
||||
|
||||
|
@ -26,6 +26,7 @@ jobs:
|
||||
- name: Apply patch for Alpha
|
||||
id: apply-patch-alpha
|
||||
env:
|
||||
CHANNEL: alpha
|
||||
BASE_BRANCH: ${{ steps.fetch-latest-release.outputs.BASE_BRANCH_ALPHA }}
|
||||
VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_ALPHA }}
|
||||
COMMIT_HASH: ${{ steps.fetch-latest-release.outputs.COMMIT_ALPHA }}
|
||||
|
@ -26,6 +26,7 @@ jobs:
|
||||
- name: Apply patch for Edge
|
||||
id: apply-patch-edge
|
||||
env:
|
||||
CHANNEL: edge
|
||||
BASE_BRANCH: ${{ steps.fetch-latest-release.outputs.BASE_BRANCH_EDGE }}
|
||||
VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_EDGE }}
|
||||
COMMIT_HASH: ${{ steps.fetch-latest-release.outputs.COMMIT_EDGE }}
|
||||
|
@ -4,7 +4,7 @@ set -euo pipefail
|
||||
|
||||
. .github/workflows/common.sh
|
||||
|
||||
checkout_branches "docker-${VERSION_NEW}"
|
||||
checkout_branches "docker-${VERSION_NEW}-${CHANNEL}"
|
||||
|
||||
pushd "${SDK_OUTER_SRCDIR}/third_party/coreos-overlay" >/dev/null || exit
|
||||
|
||||
|
@ -26,6 +26,7 @@ jobs:
|
||||
- name: Apply patch for Alpha
|
||||
id: apply-patch-alpha
|
||||
env:
|
||||
CHANNEL: alpha
|
||||
BASE_BRANCH: ${{ steps.fetch-latest-release.outputs.BASE_BRANCH_ALPHA }}
|
||||
VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_ALPHA }}
|
||||
COMMIT_HASH: ${{ steps.fetch-latest-release.outputs.COMMIT_ALPHA }}
|
||||
|
@ -26,6 +26,7 @@ jobs:
|
||||
- name: Apply patch for Edge
|
||||
id: apply-patch-edge
|
||||
env:
|
||||
CHANNEL: edge
|
||||
BASE_BRANCH: ${{ steps.fetch-latest-release.outputs.BASE_BRANCH_EDGE }}
|
||||
VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_EDGE }}
|
||||
COMMIT_HASH: ${{ steps.fetch-latest-release.outputs.COMMIT_EDGE }}
|
||||
|
@ -7,7 +7,7 @@ VERSION_SHORT=${VERSION_NEW%.*}
|
||||
|
||||
. .github/workflows/common.sh
|
||||
|
||||
checkout_branches "go-${VERSION_NEW}"
|
||||
checkout_branches "go-${VERSION_NEW}-${CHANNEL}"
|
||||
|
||||
pushd "${SDK_OUTER_SRCDIR}/third_party/coreos-overlay" >/dev/null || exit
|
||||
|
||||
|
@ -26,6 +26,7 @@ jobs:
|
||||
- name: Apply patch for Alpha
|
||||
id: apply-patch-alpha
|
||||
env:
|
||||
CHANNEL: alpha
|
||||
BASE_BRANCH: ${{ steps.fetch-latest-release.outputs.BASE_BRANCH_ALPHA }}
|
||||
PATH: ${{ steps.setup-flatcar-sdk.outputs.path }}
|
||||
VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_ALPHA }}
|
||||
|
@ -26,6 +26,7 @@ jobs:
|
||||
- name: Apply patch for Edge
|
||||
id: apply-patch-edge
|
||||
env:
|
||||
CHANNEL: edge
|
||||
BASE_BRANCH: ${{ steps.fetch-latest-release.outputs.BASE_BRANCH_EDGE }}
|
||||
PATH: ${{ steps.setup-flatcar-sdk.outputs.path }}
|
||||
VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_EDGE }}
|
||||
|
@ -7,7 +7,7 @@ VERSION_SHORT=${VERSION_NEW%.*}
|
||||
|
||||
. .github/workflows/common.sh
|
||||
|
||||
checkout_branches "linux-${VERSION_NEW}"
|
||||
checkout_branches "linux-${VERSION_NEW}-${CHANNEL}"
|
||||
|
||||
pushd "${SDK_OUTER_SRCDIR}/third_party/coreos-overlay" >/dev/null || exit
|
||||
|
||||
|
@ -26,6 +26,7 @@ jobs:
|
||||
- name: Apply patch for Alpha
|
||||
id: apply-patch-alpha
|
||||
env:
|
||||
CHANNEL: alpha
|
||||
BASE_BRANCH: ${{ steps.fetch-latest-release.outputs.BASE_BRANCH_ALPHA }}
|
||||
PATH: ${{ steps.setup-flatcar-sdk.outputs.path }}
|
||||
VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_ALPHA }}
|
||||
|
@ -26,6 +26,7 @@ jobs:
|
||||
- name: Apply patch for Beta
|
||||
id: apply-patch-beta
|
||||
env:
|
||||
CHANNEL: beta
|
||||
BASE_BRANCH: ${{ steps.fetch-latest-release.outputs.BASE_BRANCH_BETA }}
|
||||
PATH: ${{ steps.setup-flatcar-sdk.outputs.path }}
|
||||
VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_BETA }}
|
||||
|
@ -26,6 +26,7 @@ jobs:
|
||||
- name: Apply patch for Edge
|
||||
id: apply-patch-edge
|
||||
env:
|
||||
CHANNEL: edge
|
||||
BASE_BRANCH: ${{ steps.fetch-latest-release.outputs.BASE_BRANCH_EDGE }}
|
||||
PATH: ${{ steps.setup-flatcar-sdk.outputs.path }}
|
||||
VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_EDGE }}
|
||||
|
@ -26,6 +26,7 @@ jobs:
|
||||
- name: Apply patch for Stable
|
||||
id: apply-patch-stable
|
||||
env:
|
||||
CHANNEL: stable
|
||||
BASE_BRANCH: ${{ steps.fetch-latest-release.outputs.BASE_BRANCH_STABLE }}
|
||||
PATH: ${{ steps.setup-flatcar-sdk.outputs.path }}
|
||||
VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_STABLE }}
|
||||
|
@ -4,7 +4,7 @@ set -euo pipefail
|
||||
|
||||
. .github/workflows/common.sh
|
||||
|
||||
checkout_branches "runc-${VERSION_NEW}"
|
||||
checkout_branches "runc-${VERSION_NEW}-${CHANNEL}"
|
||||
|
||||
pushd "${SDK_OUTER_SRCDIR}/third_party/coreos-overlay" >/dev/null || exit
|
||||
|
||||
|
@ -27,6 +27,7 @@ jobs:
|
||||
- name: Apply patch for Alpha
|
||||
id: apply-patch-alpha
|
||||
env:
|
||||
CHANNEL: alpha
|
||||
BASE_BRANCH: ${{ steps.fetch-latest-release.outputs.BASE_BRANCH_ALPHA }}
|
||||
VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_ALPHA }}
|
||||
PATH: ${{ steps.setup-flatcar-sdk.outputs.path }}
|
||||
|
@ -27,6 +27,7 @@ jobs:
|
||||
- name: Apply patch for Edge
|
||||
id: apply-patch-edge
|
||||
env:
|
||||
CHANNEL: edge
|
||||
BASE_BRANCH: ${{ steps.fetch-latest-release.outputs.BASE_BRANCH_EDGE }}
|
||||
VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_EDGE }}
|
||||
PATH: ${{ steps.setup-flatcar-sdk.outputs.path }}
|
||||
|
@ -4,7 +4,7 @@ set -euo pipefail
|
||||
|
||||
. .github/workflows/common.sh
|
||||
|
||||
checkout_branches "rust-${VERSION_NEW}"
|
||||
checkout_branches "rust-${VERSION_NEW}-${CHANNEL}"
|
||||
|
||||
pushd "${SDK_OUTER_SRCDIR}/third_party/coreos-overlay" >/dev/null || exit
|
||||
|
||||
|
@ -24,6 +24,7 @@ jobs:
|
||||
- name: Apply patch for Alpha
|
||||
id: apply-patch-alpha
|
||||
env:
|
||||
CHANNEL: alpha
|
||||
BASE_BRANCH: ${{ steps.fetch-latest-release.outputs.BASE_BRANCH_ALPHA }}
|
||||
PATH: ${{ steps.setup-flatcar-sdk.outputs.path }}
|
||||
VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_ALPHA }}
|
||||
|
@ -24,6 +24,7 @@ jobs:
|
||||
- name: Apply patch for Edge
|
||||
id: apply-patch-edge
|
||||
env:
|
||||
CHANNEL: edge
|
||||
BASE_BRANCH: ${{ steps.fetch-latest-release.outputs.BASE_BRANCH_EDGE }}
|
||||
PATH: ${{ steps.setup-flatcar-sdk.outputs.path }}
|
||||
VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_EDGE }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user