forked from fastai/fastpages
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 984 Bytes
/
docker.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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@master
- name: setup directories for Jekyll build
run: sudo chmod -R 777 .
- name: build container
run: |
docker build -t hamelsmu/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 hamelsmu/fastpages-jekyll
env:
USERNAME: ${{ secrets.DOCKER_USERNAME }}
PASSWORD: ${{ secrets.DOCKER_PASSWORD }}