This repository has been archived by the owner on Apr 1, 2022. It is now read-only.
-
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.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
2 changed files
with
39 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,26 @@ | ||
name: Publish Docker | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
Build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Get SHA | ||
id: sha | ||
run: | | ||
echo ::set-output name=SHA::$(git rev-parse --short=12 ${{ github.sha }}) | ||
- name: Publish to Registry | ||
uses: elgohr/Publish-Docker-Github-Action@master | ||
with: | ||
name: paveloom-j/Scats.jl/binder | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
dockerfile: binder/Dockerfile | ||
registry: docker.pkg.github.com | ||
tags: "${{ steps.sha.outputs.SHA }}, latest" |
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 |
---|---|---|
@@ -1,2 +1,13 @@ | ||
### DO NOT EDIT THIS FILE! This Is Automatically Generated And Will Be Overwritten ### | ||
FROM paveloom/scats.jl-binder:136fb1242531 | ||
# Base image | ||
FROM paveloom/binder-julia-plots:0.1.0 | ||
|
||
# Install the package | ||
RUN julia -e 'using Pkg; Pkg.add("Scats"); using Scats' >/dev/null 2>&1 | ||
|
||
# Checkout the `gh-pages` branch and remove redundant files | ||
RUN git clone --depth 1 https://github.com/paveloom-j/Scats.jl.git --branch gh-pages --single-branch >/dev/null 2>&1 && \ | ||
find -type l -path './Scats.jl*' -delete && \ | ||
rm -rf ./Scats.jl/index.html ./Scats.jl/versions.js ./Scats.jl/binder | ||
|
||
# Change the working directory | ||
WORKDIR Scats.jl |