simply github workflow since we migrate most of CI steps to prow (#4299)

This commit is contained in:
zryfish
2021-09-28 17:54:07 +08:00
committed by GitHub
parent 09ef175e90
commit ef398dd56f
3 changed files with 7 additions and 85 deletions

View File

@@ -1,18 +1,19 @@
name: BuildMultiArch
name: BuildContainerImage
on:
push:
branches:
- 'master'
- 'release*'
- 'release-*'
tags:
- 'v*'
pull_request:
branches:
- 'master'
- 'release*'
- 'release-*'
jobs:
if: github.event_name == 'push'
build:
name: Build
runs-on: ubuntu-latest
@@ -36,7 +37,6 @@ jobs:
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
if: github.event_name == 'push'
run: |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
REPO=kubespheredev TAG="${GITHUB_REF#refs/*/}-multiarch" make container-cross-push
REPO=kubespheredev TAG="${GITHUB_REF#refs/*/}" make container-cross-push