Skip to content

Commit 1340e8d

Browse files
fix workflow
Signed-off-by: stoneshi-yunify <[email protected]>
1 parent 7e33253 commit 1340e8d

File tree

1 file changed

+1
-32
lines changed

1 file changed

+1
-32
lines changed

.github/workflows/build.yaml

+1-32
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212

1313
jobs:
1414
Build:
15-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-22.04
1616
steps:
1717
- uses: actions/checkout@v2
1818
- name: Docker meta for KubeSphere
@@ -29,19 +29,6 @@ jobs:
2929
type=ref,event=pr
3030
type=semver,pattern={{raw}}
3131
type=sha
32-
- name: Docker meta for Contributors
33-
id: metaContributors
34-
if: github.repository_owner != 'kubesphere'
35-
uses: docker/metadata-action@v3
36-
with:
37-
images: |
38-
ghcr.io/${{ github.repository_owner }}/s2irun
39-
tags: |
40-
type=schedule
41-
type=ref,event=branch
42-
type=ref,event=pr
43-
type=semver,pattern={{raw}}
44-
type=sha
4532
- name: Set up QEMU
4633
uses: docker/setup-qemu-action@v1
4734
- name: Set up Docker Buildx
@@ -52,13 +39,6 @@ jobs:
5239
with:
5340
username: ${{ secrets.DOCKER_HUB_USER }}
5441
password: ${{ secrets.DOCKER_HUB_SECRETS }}
55-
- name: Login to GHCR
56-
if: github.event_name != 'pull_request'
57-
uses: docker/login-action@v1
58-
with:
59-
registry: ghcr.io
60-
username: ${{ github.repository_owner }}
61-
password: ${{ secrets.GHCR_TOKEN }}
6242
- name: Build env
6343
id: build_env
6444
run: |
@@ -84,17 +64,6 @@ jobs:
8464
load: ${{ steps.build_env.outputs.load }}
8565
labels: ${{ steps.meta.outputs.labels }}
8666
platforms: ${{ steps.build_env.outputs.platforms }}
87-
- name: Build and push Docker images for Contributors
88-
uses: docker/[email protected]
89-
if: github.repository_owner != 'kubesphere'
90-
with:
91-
context: .
92-
file: Dockerfile
93-
tags: ${{ steps.metaContributors.outputs.tags }}
94-
push: ${{ steps.build_env.outputs.push }}
95-
load: ${{ steps.build_env.outputs.load }}
96-
labels: ${{ steps.metaContributors.outputs.labels }}
97-
platforms: ${{ steps.build_env.outputs.platforms }}
9867
- name: Run Trivy vulnerability scanner
9968
uses: aquasecurity/[email protected]
10069
if: github.event_name == 'pull_request'

0 commit comments

Comments
 (0)