.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:
Dongsu Park 2020-05-13 12:07:24 +02:00 committed by Kai Lüke
parent ee727b639f
commit e48aa048a2
20 changed files with 20 additions and 6 deletions

View File

@ -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

View File

@ -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 }}

View File

@ -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 }}

View File

@ -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

View File

@ -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 }}

View File

@ -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 }}

View File

@ -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

View File

@ -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 }}

View File

@ -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 }}

View File

@ -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

View File

@ -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 }}

View File

@ -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 }}

View File

@ -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 }}

View File

@ -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 }}

View File

@ -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

View File

@ -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 }}

View File

@ -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 }}

View File

@ -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

View File

@ -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 }}

View File

@ -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 }}