.github: detect latest cork version during SDK setup

We do not need to specify a cork version from each Github action.
Simply detect the latest version in `setup-flatcar-sdk.sh`, before
downloading cork binary file from Github.

Also remove the env variable for cork version from each Github action.
This commit is contained in:
Dongsu Park 2020-04-27 11:07:13 +02:00 committed by Kai Lüke
parent 566be32dfd
commit 596136827b
15 changed files with 1 additions and 28 deletions

View File

@ -22,8 +22,6 @@ jobs:
echo ::set-output name=BASE_BRANCH_ALPHA::flatcar-master-alpha
- name: Set up Flatcar SDK
id: setup-flatcar-sdk
env:
CORK_VERSION: 0.13.2
run: .github/workflows/setup-flatcar-sdk.sh
- name: Apply patch for Alpha
id: apply-patch-alpha

View File

@ -22,8 +22,6 @@ jobs:
echo ::set-output name=BASE_BRANCH_EDGE::flatcar-master-edge
- name: Set up Flatcar SDK
id: setup-flatcar-sdk
env:
CORK_VERSION: 0.13.2
run: .github/workflows/setup-flatcar-sdk.sh
- name: Apply patch for Edge
id: apply-patch-edge

View File

@ -22,8 +22,6 @@ jobs:
echo ::set-output name=BASE_BRANCH_ALPHA::flatcar-master-alpha
- name: Set up Flatcar SDK
id: setup-flatcar-sdk
env:
CORK_VERSION: 0.13.2
run: .github/workflows/setup-flatcar-sdk.sh
- name: Apply patch for Alpha
id: apply-patch-alpha

View File

@ -22,8 +22,6 @@ jobs:
echo ::set-output name=BASE_BRANCH_EDGE::flatcar-master-edge
- name: Set up Flatcar SDK
id: setup-flatcar-sdk
env:
CORK_VERSION: 0.13.2
run: .github/workflows/setup-flatcar-sdk.sh
- name: Apply patch for Edge
id: apply-patch-edge

View File

@ -22,8 +22,6 @@ jobs:
echo ::set-output name=BASE_BRANCH_ALPHA::flatcar-master-alpha
- name: Set up Flatcar SDK
id: setup-flatcar-sdk
env:
CORK_VERSION: 0.13.2
run: .github/workflows/setup-flatcar-sdk.sh
- name: Apply patch for Alpha
id: apply-patch-alpha

View File

@ -22,8 +22,6 @@ jobs:
echo ::set-output name=BASE_BRANCH_EDGE::flatcar-master-edge
- name: Set up Flatcar SDK
id: setup-flatcar-sdk
env:
CORK_VERSION: 0.13.2
run: .github/workflows/setup-flatcar-sdk.sh
- name: Apply patch for Edge
id: apply-patch-edge

View File

@ -22,8 +22,6 @@ jobs:
echo ::set-output name=BASE_BRANCH_ALPHA::flatcar-master-alpha
- name: Set up Flatcar SDK
id: setup-flatcar-sdk
env:
CORK_VERSION: 0.13.2
run: .github/workflows/setup-flatcar-sdk.sh
- name: Apply patch for Alpha
id: apply-patch-alpha

View File

@ -22,8 +22,6 @@ jobs:
echo ::set-output name=BASE_BRANCH_BETA::flatcar-master-beta
- name: Set up Flatcar SDK
id: setup-flatcar-sdk
env:
CORK_VERSION: 0.13.2
run: .github/workflows/setup-flatcar-sdk.sh
- name: Apply patch for Beta
id: apply-patch-beta

View File

@ -22,8 +22,6 @@ jobs:
echo ::set-output name=BASE_BRANCH_EDGE::flatcar-master-edge
- name: Set up Flatcar SDK
id: setup-flatcar-sdk
env:
CORK_VERSION: 0.13.2
run: .github/workflows/setup-flatcar-sdk.sh
- name: Apply patch for Edge
id: apply-patch-edge

View File

@ -22,8 +22,6 @@ jobs:
echo ::set-output name=BASE_BRANCH_STABLE::flatcar-master
- name: Set up Flatcar SDK
id: setup-flatcar-sdk
env:
CORK_VERSION: 0.13.2
run: .github/workflows/setup-flatcar-sdk.sh
- name: Apply patch for Stable
id: apply-patch-stable

View File

@ -23,8 +23,6 @@ jobs:
echo ::set-output name=BASE_BRANCH_ALPHA::flatcar-master-alpha
- name: Set up Flatcar SDK
id: setup-flatcar-sdk
env:
CORK_VERSION: 0.13.2
run: .github/workflows/setup-flatcar-sdk.sh
- name: Apply patch for Alpha
id: apply-patch-alpha

View File

@ -23,8 +23,6 @@ jobs:
echo ::set-output name=BASE_BRANCH_EDGE::flatcar-master-edge
- name: Set up Flatcar SDK
id: setup-flatcar-sdk
env:
CORK_VERSION: 0.13.2
run: .github/workflows/setup-flatcar-sdk.sh
- name: Apply patch for Edge
id: apply-patch-edge

View File

@ -20,8 +20,6 @@ jobs:
echo ::set-output name=BASE_BRANCH_ALPHA::flatcar-master-alpha
- name: Set up Flatcar SDK
id: setup-flatcar-sdk
env:
CORK_VERSION: 0.13.2
run: .github/workflows/setup-flatcar-sdk.sh
- name: Apply patch for Alpha
id: apply-patch-alpha

View File

@ -20,8 +20,6 @@ jobs:
echo ::set-output name=BASE_BRANCH_EDGE::flatcar-master-edge
- name: Set up Flatcar SDK
id: setup-flatcar-sdk
env:
CORK_VERSION: 0.13.2
run: .github/workflows/setup-flatcar-sdk.sh
- name: Apply patch for Edge
id: apply-patch-edge

View File

@ -2,6 +2,7 @@
set -euo pipefail
CORK_VERSION=$(curl -s https://api.github.com/repos/flatcar-linux/mantle/releases/latest | jq -r .tag_name | sed -e 's/^v//')
curl -L -o cork https://github.com/flatcar-linux/mantle/releases/download/v"${CORK_VERSION}"/cork-"${CORK_VERSION}"-amd64
curl -L -o cork.sig https://github.com/flatcar-linux/mantle/releases/download/v"${CORK_VERSION}"/cork-"${CORK_VERSION}"-amd64.sig
gpg --keyserver keys.gnupg.net --receive-keys 84C8E771C0DF83DFBFCAAAF03ADA89DEC2507883