1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-04 16:16:58 +02:00

Merge pull request #2292 from logband/master

fix(ci): update latest to only run once
This commit is contained in:
Chris Lu 2021-08-28 20:33:16 -07:00 committed by GitHub
commit cd838b1197
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 13 deletions

View file

@ -1,7 +1,6 @@
name: "go: test building cross-platform binary" name: "go: test building cross-platform binary"
on: on:
push:
pull_request: pull_request:
workflow_dispatch: [] workflow_dispatch: []

View file

@ -9,10 +9,6 @@ on:
jobs: jobs:
build-latest: build-latest:
runs-on: [ubuntu-latest] runs-on: [ubuntu-latest]
strategy:
matrix:
platform: [ linux ]
arch: [ amd64, arm, arm64, 386 ]
steps: steps:
- -
@ -61,16 +57,12 @@ jobs:
context: ./docker context: ./docker
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
file: ./docker/Dockerfile file: ./docker/Dockerfile
platforms: ${{ matrix.platform }}/${{ matrix.arch }} platforms: linux/amd64, linux/arm, linux/arm64, linux/386
tags: ${{ steps.docker_meta.outputs.tags }} tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }} labels: ${{ steps.docker_meta.outputs.labels }}
build-dev: build-dev:
runs-on: [ubuntu-latest] runs-on: [ubuntu-latest]
strategy:
matrix:
platform: [ linux ]
arch: [ amd64, arm, arm64, 386 ]
steps: steps:
- -
@ -120,6 +112,6 @@ jobs:
context: ./docker context: ./docker
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
file: ./docker/Dockerfile.go_build file: ./docker/Dockerfile.go_build
platforms: ${{ matrix.platform }}/${{ matrix.arch }} platforms: linux/amd64, linux/arm, linux/arm64, linux/386
tags: ${{ steps.docker_meta.outputs.tags }} tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }} labels: ${{ steps.docker_meta.outputs.labels }}

View file

@ -1,7 +1,6 @@
name: "docker: test building container images" name: "docker: test building container images"
on: on:
push:
pull_request: pull_request:
workflow_dispatch: [] workflow_dispatch: []
@ -47,7 +46,7 @@ jobs:
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
context: ./docker context: ./docker
push: ${{ github.event_name != 'pull_request' }} push: false
file: ./docker/Dockerfile file: ./docker/Dockerfile
platforms: ${{ matrix.platform }}/${{ matrix.arch }} platforms: ${{ matrix.platform }}/${{ matrix.arch }}
tags: ${{ steps.docker_meta.outputs.tags }} tags: ${{ steps.docker_meta.outputs.tags }}