Skip to content

Commit

Permalink
feat: frontend arm runner (#5351)
Browse files Browse the repository at this point in the history
* feat: arm64 runner

* fix: push image

* fix: save sealos

* fix: save sealos needs

* fix: digests name

* fix: secret innherit

* fix: checkout

* fix: fail-fast

* fix: cluster-image-build

* fix: save sealos

* fix: save sealos

* fix: save sealos

* fix: save sealos

* chore: bump action use deps

* chore: bump action use deps

* fix: release frontend tag

* fix: default latest

* feat: delete save sealos
  • Loading branch information
zijiren233 authored Jan 21, 2025
1 parent b33e2ec commit f31d747
Show file tree
Hide file tree
Showing 36 changed files with 349 additions and 276 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bot-auto-cherry-pick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
comment:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Comment cherry-pick command
uses: actions/github-script@v5
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/bot-cherry-pick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
cherry-pick:
name: Cherry Pick
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/cherry-pick') && github.event.comment.user.login=='sealos-ci-robot'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Write vars
id: set-target
Expand All @@ -26,7 +26,7 @@ jobs:
fi
echo "prNumber=$PR_NUMBER" >> $GITHUB_OUTPUT
- name: Checkout the latest code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_PAT }}
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bot-issues-translator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
issues: write
discussions: write
pull-requests: write
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: usthe/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bot-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/labeler@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
jobs:
comment:
if: startswith(github.event.comment.body, '/')
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout the latest code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Gh Robot for Sealos
uses: labring/[email protected]
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/check-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ env:

jobs:
coverage:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Golang with cache
uses: magnetikonline/action-golang-cache@v3
uses: magnetikonline/action-golang-cache@v5
with:
go-version: ${{ env.GO_VERSION }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/check-format-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ env:

jobs:
format-code:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.head_ref }}

- name: Setup Golang with cache
uses: magnetikonline/action-golang-cache@v3
uses: magnetikonline/action-golang-cache@v5
with:
go-version: ${{ env.GO_VERSION }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/check-license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ env:

jobs:
check-license:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-link-error.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:

jobs:
linkChecker:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
# User-definable name of this GitHub Actions job:
name: Scan
# If you are self-hosting, change the following `runs-on` value:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

container:
# A Docker image with Semgrep installed. Do not change this.
Expand All @@ -39,7 +39,7 @@ jobs:

steps:
# Fetch project source with GitHub Actions Checkout.
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# Run the "semgrep ci" command on the command line of the docker image.
-
run: |
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/ci-patch-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,24 +46,24 @@ jobs:

container-sealos:
needs: [ call_ci_workflow ]
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
if: ${{ (github.event_name == 'push') || (inputs.push_mage == true) }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Expose git commit data
uses: rlespinasse/git-commit-data-action@v1
- # Add support for more platforms with QEMU (optional)
# https://github.com/docker/setup-qemu-action
name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand Down Expand Up @@ -110,12 +110,12 @@ jobs:
if: ${{ (github.event_name == 'push') || (inputs.push_mage == true) }}
needs:
- container-sealos
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
issues: write
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Expose git commit data
uses: rlespinasse/git-commit-data-action@v1
- name: Renew issue and Sync Images
Expand All @@ -141,12 +141,12 @@ jobs:
needs:
- call_ci_workflow
- save-sealos
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
issues: write
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Download sealos
uses: actions/download-artifact@v4
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,36 +40,36 @@ on:

jobs:
resolve-modules:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Resolve Modules
id: set-matrix
run: bash ./scripts/resolve-modules.sh .

golangci-lint:
needs: [ resolve-modules ]
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
strategy:
matrix: ${{ fromJson(needs.resolve-modules.outputs.matrix) }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Golang with cache
uses: magnetikonline/action-golang-cache@v3
uses: magnetikonline/action-golang-cache@v5
with:
go-version: ${{ env.GO_VERSION }}

- name: Install Dependencies
run: sudo apt update && sudo apt install -y libgpgme-dev libbtrfs-dev libdevmapper-dev

- name: Run Linter
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: v1.54.2
working-directory: ${{ matrix.workdir }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cloud-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

release-frontends:
if: ${{ github.event.inputs.build_offline_tar_only == false }}
uses: ./.github/workflows/frontend.yml
uses: ./.github/workflows/frontends.yml
with:
push_image: true
push_image_tag: ${{ github.event.inputs.tag || github.event.release.tag_name }}
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
OSS_BUCKET: ${{ secrets.OSS_BUCKET }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Download sealos
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
OSS_BUCKET: ${{ secrets.OSS_BUCKET }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Download sealos
uses: actions/download-artifact@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ jobs:
if: ${{ (github.event_name == 'release') ||(github.event_name == 'push') || (inputs.push_image == true) }}
needs:
- save-sealos
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Expose git commit data
Expand Down
Loading

0 comments on commit f31d747

Please sign in to comment.