-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1130 from dusk-network/docker-artifact-build
Add Docker artifact build workflow
- Loading branch information
Showing
2 changed files
with
31 additions
and
2 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,27 @@ | ||
name: Build and Upload Docker Image as Artifact | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-upload: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Build Docker image | ||
run: docker build -t rusk . | ||
|
||
- name: Save Docker image | ||
run: docker save rusk:latest -o rusk_image.tar | ||
|
||
- name: Upload Docker image as artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: rusk-image | ||
path: rusk_image.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