Skip to content

Commit 7d3eb78

Browse files
use ubuntu to build image
Signed-off-by: stoneshi-yunify <[email protected]>
1 parent db30007 commit 7d3eb78

File tree

8 files changed

+100
-703
lines changed

8 files changed

+100
-703
lines changed

.github/actions/build/action.yml

Lines changed: 7 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -43,50 +43,31 @@ inputs:
4343
runs:
4444
using: composite
4545
steps:
46-
- uses: actions/checkout@v2
46+
- uses: actions/checkout@v4
4747
- name: Docker meta for KubeSphere
4848
id: meta
4949
if: github.repository_owner == 'kubesphere'
50-
uses: docker/metadata-action@v3.7.0
50+
uses: docker/metadata-action@v5
5151
with:
5252
images: |
53-
kubespheredev/${{ inputs.image-name }}
54-
ghcr.io/${{ github.repository_owner }}/${{ inputs.image-name }}
55-
tags: |
56-
type=ref,event=branch,suffix=${{ inputs.tag-suffix }}
57-
type=ref,event=pr,suffix=${{ inputs.tag-suffix }}
58-
type=semver,pattern={{version}},prefix=v,suffix=${{ inputs.tag-suffix }}
59-
- name: Docker meta for Contributors
60-
id: metaContributors
61-
if: github.repository_owner != 'kubesphere'
62-
uses: docker/[email protected]
63-
with:
64-
images: |
65-
ghcr.io/${{ github.repository_owner }}/${{ inputs.image-name }}
53+
kubesphere/${{ inputs.image-name }}
6654
tags: |
6755
type=ref,event=branch,suffix=${{ inputs.tag-suffix }}
6856
type=ref,event=pr,suffix=${{ inputs.tag-suffix }}
6957
type=semver,pattern={{version}},prefix=v,suffix=${{ inputs.tag-suffix }}
7058
- name: Set up QEMU
71-
uses: docker/setup-qemu-action@v1
59+
uses: docker/setup-qemu-action@v3
7260
- name: Set up Docker Buildx
73-
uses: docker/setup-buildx-action@v1
61+
uses: docker/setup-buildx-action@v3
7462
- name: Login to DockerHub
7563
if: github.event_name != 'pull_request' && github.repository_owner == 'kubesphere'
76-
uses: docker/login-action@v1
64+
uses: docker/login-action@v3
7765
with:
7866
registry: ${{ inputs.docker-registry }}
7967
username: ${{ inputs.docker-namespace }}
8068
password: ${{ inputs.docker-password }}
81-
- name: Login to GHCR
82-
if: github.event_name != 'pull_request'
83-
uses: docker/login-action@v1
84-
with:
85-
registry: ghcr.io
86-
username: ${{ github.repository_owner }}
87-
password: ${{ inputs.ghcr-token }}
8869
- name: Build and push Docker images
89-
uses: docker/build-push-action@v2
70+
uses: docker/build-push-action@v6
9071
if: github.repository_owner == 'kubesphere'
9172
with:
9273
context: ${{ inputs.context }}
@@ -96,14 +77,3 @@ runs:
9677
labels: ${{ steps.meta.outputs.labels }}
9778
platforms: ${{ inputs.platforms }}
9879
build-args: ${{ inputs.build-args }}
99-
- name: Build and push Docker images for Contributors
100-
uses: docker/build-push-action@v2
101-
if: github.repository_owner != 'kubesphere'
102-
with:
103-
context: ${{ inputs.context }}
104-
file: ${{ inputs.dockerfile }}
105-
tags: ${{ steps.metaContributors.outputs.tags }}
106-
push: ${{ github.event_name != 'pull_request' }}
107-
labels: ${{ steps.metaContributors.outputs.labels }}
108-
platforms: ${{ inputs.platforms }}
109-
build-args: ${{ inputs.build-args }}

.github/workflows/build-podman.yaml

Lines changed: 0 additions & 204 deletions
This file was deleted.

0 commit comments

Comments
 (0)