Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.

Commit

Permalink
(#149, #150) Update the Binder image.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Sobolev committed Aug 23, 2020
2 parents 1322835 + 82cbd6b commit 932716f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/PublishDocker.yml
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"
15 changes: 13 additions & 2 deletions binder/Dockerfile
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

0 comments on commit 932716f

Please sign in to comment.