Skip to content

Commit

Permalink
Merge pull request #15 from mickamy/feat/run-build-and-push-images-af…
Browse files Browse the repository at this point in the history
…ter-benchmark

feat/run build and push images after benchmark
  • Loading branch information
mickamy authored Jan 8, 2024
2 parents 033d83d + bddc93a commit c411c46
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
fail-fast: false
matrix:
language:
- "crystal"
# - "crystal"
- "go"
- "nodejs"
- "php"
- "python"
- "ruby"
# - "nodejs"
# - "php"
# - "python"
# - "ruby"
env:
ISHOCON_APP_LANG: ${{ matrix.language }}
UNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/build_and_push_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@ name: Build and push images

on:
workflow_dispatch:
push:
branches:
- master
workflow_run:
workflows: [ Benchmark ]
branches: [ '**' ]
types:
- completed

concurrency:
group: ${{ github.workflow }}-${{ github.sha }}
cancel-in-progress: true

jobs:
build-and-push-base-and-bench-images:
build-base-and-bench-images:
name: Build and push base and bench images
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
timeout-minutes: 60
env:
Expand Down Expand Up @@ -69,7 +72,7 @@ jobs:
name: Build app images
runs-on: ubuntu-latest
timeout-minutes: 60
needs: build-and-push-base-and-bench-images
needs: build-base-and-bench-images
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit c411c46

Please sign in to comment.