-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab8c7ca
commit 3fc7f57
Showing
2 changed files
with
11 additions
and
4 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 |
---|---|---|
|
@@ -34,6 +34,7 @@ jobs: | |
with: | ||
ref: ${{ github.GITHUB_REF }} | ||
|
||
# Log into the GitHub Container Registry so we can push the image | ||
- name: Log in to Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
|
@@ -55,13 +56,17 @@ jobs: | |
type=semver,pattern={{version}} | ||
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') && endsWith(github.ref, 'master') }} | ||
# What is QEMU? | ||
# QEMU is a generic and open source machine emulator and virtualizer. | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
with: | ||
platforms: linux/amd64 | ||
|
||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
# Fail if prehook not used | ||
- name: Set Up Python for Cleaning | ||
uses: actions/setup-python@v4 | ||
with: | ||
|
@@ -71,14 +76,15 @@ jobs: | |
python -m pip install --upgrade nbstripout --no-cache-dir | ||
find /home/runner/work/MADRID/MADRID/ -name "*.ipynb" -exec nbstripout "{}" \; | ||
# Fail if prehook not used | ||
- name: Clean Notebook Output | ||
- name: Assert Clean Notebook Output | ||
uses: ResearchSoftwareActions/[email protected] | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
builder: ${{ steps.buildx.outputs.name }} | ||
platforms: linux/amd64 | ||
file: ./Dockerfile | ||
push: true | ||
tags: ${{ steps.metadata.outputs.tags }} | ||
labels: ${{ steps.metadata.outputs.labels }} |
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