-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do not run redundant test action on master events; reuse prebuilt bas…
…e image in test actions
- Loading branch information
Showing
4 changed files
with
121 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Build fission:base image | ||
|
||
# do not run automatically | ||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build fission:base image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Clone | ||
uses: actions/checkout@v2 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- | ||
name: Build and export | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
tags: fission:base | ||
outputs: type=docker,dest=/tmp/fission.tar | ||
- | ||
name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: fission_base_image | ||
path: /tmp/fission.tar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# run on non-master branches, and pull requests | ||
|
||
name: Perform automated Checks (non-master-branch events) | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- master | ||
pull_request: | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build fission:base image | ||
uses: ./.github/workflows/build.yaml | ||
|
||
test: | ||
name: Run Tests | ||
needs: | ||
- build | ||
uses: ./.github/workflows/test.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters