Skip to content

Commit

Permalink
ci: fix workflow job names (#526)
Browse files Browse the repository at this point in the history
Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo authored Jan 8, 2025
1 parent 95f12b0 commit 2d451d4
Show file tree
Hide file tree
Showing 12 changed files with 76 additions and 72 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/pull-cd-builder-images-centos7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:

jobs:
define-matrix:
runs-on: ubuntu-latest
name: Define building matrix - CentOS7
runs-on: ubuntu-24.04
outputs:
changed_folders: ${{ steps.changed.outputs.folders }}
changed_go_builder_folders: ${{ steps.changed.outputs.go_builder_folders }}
Expand Down Expand Up @@ -70,15 +71,15 @@ jobs:
JSON_CHANGED_FOLDERS_CPP_TYPE=$(jq --null-input --argjson changed "$JSON_CHANGED_BUILDERS" --argjson ALL "$JSON_ALL_CPP_BUILDERS" -R -s -c '$changed - ($changed - $ALL)' )
# Set the output variable
echo "files=$JSON_CHANGED_FILES" >> $GITHUB_OUTPUT
echo "folders=$JSON_CHANGED_FOLDERS" >> $GITHUB_OUTPUT
echo "go_builder_folders=$JSON_CHANGED_FOLDERS_GO_TYPE" >> $GITHUB_OUTPUT
echo "rust_builder_folders=$JSON_CHANGED_FOLDERS_RUST_TYPE" >> $GITHUB_OUTPUT
echo "cpp_builder_folders=$JSON_CHANGED_FOLDERS_CPP_TYPE" >> $GITHUB_OUTPUT
echo "files=$JSON_CHANGED_FILES" | tee -a $GITHUB_OUTPUT
echo "folders=$JSON_CHANGED_FOLDERS" | tee -a $GITHUB_OUTPUT
echo "go_builder_folders=$JSON_CHANGED_FOLDERS_GO_TYPE" | tee -a $GITHUB_OUTPUT
echo "rust_builder_folders=$JSON_CHANGED_FOLDERS_RUST_TYPE" | tee -a $GITHUB_OUTPUT
echo "cpp_builder_folders=$JSON_CHANGED_FOLDERS_CPP_TYPE" | tee -a $GITHUB_OUTPUT
skaffold-golang:
name: build images for golang builders
runs-on: ubuntu-latest
name: build golang builders - base CentOS7
runs-on: ubuntu-24.04
needs: define-matrix

permissions:
Expand Down Expand Up @@ -139,8 +140,8 @@ jobs:
--push=false
skaffold-rust:
name: build images for rust builders
runs-on: ubuntu-latest
name: build rust builders - base CentOS7
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
Expand Down Expand Up @@ -190,8 +191,8 @@ jobs:
--push=false
skaffold-cpp:
name: skaffold build images for cpp builders
runs-on: ubuntu-latest
name: build cpp builders - base CentOS7
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
Expand Down
25 changes: 13 additions & 12 deletions .github/workflows/pull-cd-builder-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:

jobs:
define-matrix:
runs-on: ubuntu-latest
name: Define building matrix
runs-on: ubuntu-24.04
outputs:
changed_folders: ${{ steps.changed.outputs.folders }}
changed_go_builder_folders: ${{ steps.changed.outputs.go_builder_folders }}
Expand Down Expand Up @@ -70,15 +71,15 @@ jobs:
JSON_CHANGED_FOLDERS_CPP_TYPE=$(jq --null-input --argjson changed "$JSON_CHANGED_BUILDERS" --argjson ALL "$JSON_ALL_CPP_BUILDERS" -R -s -c '$changed - ($changed - $ALL)' )
# Set the output variable
echo "files=$JSON_CHANGED_FILES" >> $GITHUB_OUTPUT
echo "folders=$JSON_CHANGED_FOLDERS" >> $GITHUB_OUTPUT
echo "go_builder_folders=$JSON_CHANGED_FOLDERS_GO_TYPE" >> $GITHUB_OUTPUT
echo "rust_builder_folders=$JSON_CHANGED_FOLDERS_RUST_TYPE" >> $GITHUB_OUTPUT
echo "cpp_builder_folders=$JSON_CHANGED_FOLDERS_CPP_TYPE" >> $GITHUB_OUTPUT
echo "files=$JSON_CHANGED_FILES" | tee -a $GITHUB_OUTPUT
echo "folders=$JSON_CHANGED_FOLDERS" | tee -a $GITHUB_OUTPUT
echo "go_builder_folders=$JSON_CHANGED_FOLDERS_GO_TYPE" | tee -a $GITHUB_OUTPUT
echo "rust_builder_folders=$JSON_CHANGED_FOLDERS_RUST_TYPE" | tee -a $GITHUB_OUTPUT
echo "cpp_builder_folders=$JSON_CHANGED_FOLDERS_CPP_TYPE" | tee -a $GITHUB_OUTPUT
skaffold-golang:
name: skaffold build images for golang builders
runs-on: ubuntu-latest
name: build golang builders
runs-on: ubuntu-24.04
needs: define-matrix

permissions:
Expand Down Expand Up @@ -135,8 +136,8 @@ jobs:
--push=false
skaffold-rust:
name: build images for rust builders
runs-on: ubuntu-latest
name: build rust builders
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
Expand Down Expand Up @@ -185,8 +186,8 @@ jobs:
--push=false
skaffold-cpp:
name: skaffold build images for cpp builders
runs-on: ubuntu-latest
name: build cpp builders
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-cd-builder-images2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
# check if the comments come from pull request, exclude those from issue.
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/just msb-') }}
name: test building with multi stages
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-cd-util-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:
jobs:
skaffold:
name: build images with skaffold
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

permissions:
contents: read
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/pull-ci-runtime-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:
jobs:
skaffold:
name: build images with skaffold
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

permissions:
contents: read
Expand All @@ -33,8 +33,8 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: '0'
fetch-tags: 'true'
fetch-depth: "0"
fetch-tags: "true"
# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
--push=false
skaffold-nogo:
name: build images with skaffold
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

permissions:
contents: read
Expand All @@ -92,8 +92,8 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: '0'
fetch-tags: 'true'
fetch-depth: "0"
fetch-tags: "true"

# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull-prod-runtime-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:
jobs:
skaffold:
name: build images with skaffold
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

permissions:
contents: read
Expand All @@ -30,8 +30,8 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: '0'
fetch-tags: 'true'
fetch-depth: "0"
fetch-tags: "true"

# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-verify-packages-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
test-packages-cfg:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Set up Go
uses: actions/setup-go@v5
Expand Down
25 changes: 13 additions & 12 deletions .github/workflows/release-cd-builder-images-centos7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ on:

jobs:
define-matrix:
runs-on: ubuntu-latest
name: Define building matrix - CentOS7
runs-on: ubuntu-24.04
outputs:
changed_folders: ${{ steps.changed.outputs.folders }}
changed_go_builder_folders: ${{ steps.changed.outputs.go_builder_folders }}
Expand Down Expand Up @@ -71,15 +72,15 @@ jobs:
JSON_CHANGED_FOLDERS_CPP_TYPE=$(jq --null-input --argjson changed "$JSON_CHANGED_BUILDERS" --argjson ALL "$JSON_ALL_CPP_BUILDERS" -R -s -c '$changed - ($changed - $ALL)' )
# Set the output variable
echo "files=$JSON_CHANGED_FILES" >> $GITHUB_OUTPUT
echo "folders=$JSON_CHANGED_FOLDERS" >> $GITHUB_OUTPUT
echo "go_builder_folders=$JSON_CHANGED_FOLDERS_GO_TYPE" >> $GITHUB_OUTPUT
echo "rust_builder_folders=$JSON_CHANGED_FOLDERS_RUST_TYPE" >> $GITHUB_OUTPUT
echo "cpp_builder_folders=$JSON_CHANGED_FOLDERS_CPP_TYPE" >> $GITHUB_OUTPUT
echo "files=$JSON_CHANGED_FILES" | tee -a $GITHUB_OUTPUT
echo "folders=$JSON_CHANGED_FOLDERS" | tee -a $GITHUB_OUTPUT
echo "go_builder_folders=$JSON_CHANGED_FOLDERS_GO_TYPE" | tee -a $GITHUB_OUTPUT
echo "rust_builder_folders=$JSON_CHANGED_FOLDERS_RUST_TYPE" | tee -a $GITHUB_OUTPUT
echo "cpp_builder_folders=$JSON_CHANGED_FOLDERS_CPP_TYPE" | tee -a $GITHUB_OUTPUT
skaffold-golang:
name: publish images for golang builders
runs-on: ubuntu-latest
name: push golang builders - base CentOS7
runs-on: ubuntu-24.04
needs: define-matrix

permissions:
Expand Down Expand Up @@ -138,8 +139,8 @@ jobs:
--profile=${{ matrix.profile }}
skaffold-rust:
name: publish images for rust builders
runs-on: ubuntu-latest
name: push rust builders - base CentOS7
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
Expand Down Expand Up @@ -185,8 +186,8 @@ jobs:
--module=${{ matrix.module }}
skaffold-cpp:
name: skaffold build images for cpp builders
runs-on: ubuntu-latest
name: build cpp builders - base CentOS7
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
Expand Down
25 changes: 13 additions & 12 deletions .github/workflows/release-cd-builder-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ on:

jobs:
define-matrix:
runs-on: ubuntu-latest
name: Define building matrix
runs-on: ubuntu-24.04
outputs:
changed_folders: ${{ steps.changed.outputs.folders }}
changed_go_builder_folders: ${{ steps.changed.outputs.go_builder_folders }}
Expand Down Expand Up @@ -71,15 +72,15 @@ jobs:
JSON_CHANGED_FOLDERS_CPP_TYPE=$(jq --null-input --argjson changed "$JSON_CHANGED_BUILDERS" --argjson ALL "$JSON_ALL_CPP_BUILDERS" -R -s -c '$changed - ($changed - $ALL)' )
# Set the output variable
echo "files=$JSON_CHANGED_FILES" >> $GITHUB_OUTPUT
echo "folders=$JSON_CHANGED_FOLDERS" >> $GITHUB_OUTPUT
echo "go_builder_folders=$JSON_CHANGED_FOLDERS_GO_TYPE" >> $GITHUB_OUTPUT
echo "rust_builder_folders=$JSON_CHANGED_FOLDERS_RUST_TYPE" >> $GITHUB_OUTPUT
echo "cpp_builder_folders=$JSON_CHANGED_FOLDERS_CPP_TYPE" >> $GITHUB_OUTPUT
echo "files=$JSON_CHANGED_FILES" | tee -a $GITHUB_OUTPUT
echo "folders=$JSON_CHANGED_FOLDERS" | tee -a $GITHUB_OUTPUT
echo "go_builder_folders=$JSON_CHANGED_FOLDERS_GO_TYPE" | tee -a $GITHUB_OUTPUT
echo "rust_builder_folders=$JSON_CHANGED_FOLDERS_RUST_TYPE" | tee -a $GITHUB_OUTPUT
echo "cpp_builder_folders=$JSON_CHANGED_FOLDERS_CPP_TYPE" | tee -a $GITHUB_OUTPUT
skaffold-golang:
name: skaffold publish images for golang builders
runs-on: ubuntu-latest
name: push golang builders
runs-on: ubuntu-24.04
needs: define-matrix

permissions:
Expand Down Expand Up @@ -133,8 +134,8 @@ jobs:
--profile=${{ matrix.profile }}
skaffold-rust:
name: publish images for rust builders
runs-on: ubuntu-latest
name: push rust builders
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
Expand Down Expand Up @@ -180,8 +181,8 @@ jobs:
--module=${{ matrix.module }}
skaffold-cpp:
name: publish images for cpp builders
runs-on: ubuntu-latest
name: push cpp builders
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-cd-util-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
skaffold:
name: publish images with skaffold
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

permissions:
contents: read
Expand All @@ -26,8 +26,8 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: '0'
fetch-tags: 'true'
fetch-depth: "0"
fetch-tags: "true"

# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release-ci-runtime-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
jobs:
skaffold-go:
name: publish images with skaffold
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

permissions:
contents: read
Expand All @@ -29,8 +29,8 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: '0'
fetch-tags: 'true'
fetch-depth: "0"
fetch-tags: "true"

# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
--profile ${{ matrix.go-profile }}
skaffold-nogo:
name: publish images with skaffold
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

permissions:
contents: read
Expand All @@ -85,8 +85,8 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: '0'
fetch-tags: 'true'
fetch-depth: "0"
fetch-tags: "true"

# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-prod-runtime-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
skaffold:
name: publish images with skaffold
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

permissions:
contents: read
Expand All @@ -26,8 +26,8 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: '0'
fetch-tags: 'true'
fetch-depth: "0"
fetch-tags: "true"

# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
Expand Down

0 comments on commit 2d451d4

Please sign in to comment.