Skip to content
Permalink
master
Switch branches/tags
View runs Go to file
 
 
Cannot retrieve contributors at this time
executable file 33 lines (29 sloc) 978 Bytes
name: Build-Docker
on:
push:
paths:
- Gemfile*
branches:
- master
pull_request:
paths:
- Gemfile*
jobs:
jekyll-fastpages:
if: github.repository == 'fastai/fastpages'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: setup directories for Jekyll build
run: sudo chmod -R 777 .
- name: build container
run: |
docker build -t fastai/fastpages-jekyll -f _action_files/fastpages-jekyll.Dockerfile .
- name: push container
if: github.event == 'push'
run: |
echo ${PASSWORD} | docker login -u $USERNAME --password-stdin
docker push fastai/fastpages-jekyll
env:
USERNAME: ${{ secrets.DOCKER_USERNAME }}
PASSWORD: ${{ secrets.DOCKER_PASSWORD }}