-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix containers platforms and metadata (Add actionlint too)
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
- Loading branch information
Showing
39 changed files
with
3,291 additions
and
453 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
self-hosted-runner: | ||
# Labels of self-hosted runner in array of string | ||
labels: | ||
- bastion | ||
- x86_64 | ||
- arm64 | ||
- aarch64 | ||
- amd64 | ||
- repo-nightly | ||
- repo-staging | ||
- repo-release | ||
- medium | ||
- large |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
name: setup-actionlint | ||
description: Setup actionlint | ||
inputs: | ||
version: | ||
description: The version of actionlint | ||
default: 1.6.24 | ||
cache-seed: | ||
required: true | ||
type: string | ||
description: Seed used to invalidate caches | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
|
||
- name: Cache actionlint Binary | ||
uses: actions/cache@v3 | ||
with: | ||
path: /usr/local/bin/actionlint | ||
key: ${{ inputs.cache-seed }}|${{ runner.os }}|${{ runner.arch }}|actionlint|${{ inputs.version }} | ||
|
||
- name: Setup actionlint | ||
shell: bash | ||
run: | | ||
if ! command -v actionlint; then | ||
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) ${{ inputs.version }} | ||
mv ./actionlint /usr/local/bin/actionlint | ||
fi | ||
- name: Show actionlint Version | ||
shell: bash | ||
run: | | ||
actionlint --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
name: setup-actionlint | ||
description: Setup actionlint | ||
inputs: | ||
version: | ||
description: The version of actionlint | ||
default: 1.6.24 | ||
cache-seed: | ||
required: true | ||
type: string | ||
description: Seed used to invalidate caches | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
|
||
- name: Cache actionlint Binary | ||
uses: actions/cache@v3 | ||
with: | ||
path: /usr/local/bin/actionlint | ||
key: ${{ inputs.cache-seed }}|${{ runner.os }}|${{ runner.arch }}|actionlint|${{ inputs.version }} | ||
|
||
- name: Setup actionlint | ||
shell: bash | ||
run: | | ||
if ! command -v actionlint; then | ||
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) ${{ inputs.version }} | ||
mv ./actionlint /usr/local/bin/actionlint | ||
fi | ||
- name: Show actionlint Version | ||
shell: bash | ||
run: | | ||
actionlint --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
name: setup-shellcheck | ||
description: Setup shellcheck | ||
inputs: | ||
version: | ||
description: The version of shellcheck | ||
default: v0.9.0 | ||
cache-seed: | ||
required: true | ||
type: string | ||
description: Seed used to invalidate caches | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
|
||
- name: Cache shellcheck Binary | ||
uses: actions/cache@v3 | ||
with: | ||
path: /usr/local/bin/shellcheck | ||
key: ${{ inputs.cache-seed }}|${{ runner.os }}|${{ runner.arch }}|shellcheck|${{ inputs.version }} | ||
|
||
- name: Setup shellcheck | ||
shell: bash | ||
run: | | ||
if ! command -v shellcheck; then | ||
wget https://github.com/koalaman/shellcheck/releases/download/${{ inputs.version }}/shellcheck-${{ inputs.version }}.${{ runner.os }}.x86_64.tar.xz | ||
tar xf shellcheck-${{ inputs.version }}.${{ runner.os }}.x86_64.tar.xz | ||
mv shellcheck-${{ inputs.version }}/shellcheck /usr/local/bin/shellcheck | ||
rm -rf shellcheck-${{ inputs.version }}.${{ runner.os }}.x86_64.tar.xz shellcheck-${{ inputs.version }} | ||
fi | ||
- name: Show shellcheck Version | ||
shell: bash | ||
run: | | ||
shellcheck --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.