actions-gh-pages/.github/workflows/dev-image.yml

43 lines
1.1 KiB
YAML
Raw Normal View History

2020-03-25 10:37:45 +00:00
name: 'Dev Image CI'
on:
push:
branches:
- main
2020-03-25 10:37:45 +00:00
paths:
- '.github/workflows/dev-image.yml'
- '.dockerignore'
- '.nvmrc'
- 'Dockerfile'
- 'Makefile'
2020-07-21 10:37:23 +00:00
- 'docker-compose.yml'
2020-03-25 10:37:45 +00:00
pull_request:
paths:
- '.github/workflows/dev-image.yml'
- '.dockerignore'
- '.nvmrc'
- 'Dockerfile'
- 'Makefile'
2020-07-21 10:37:23 +00:00
- 'docker-compose.yml'
2020-03-25 10:37:45 +00:00
jobs:
skipci:
runs-on: ubuntu-18.04
steps:
- run: echo "[skip ci] ${{ contains(github.event.head_commit.message, '[skip ci]') }}"
dev-image-test:
runs-on: ubuntu-18.04
if: contains(github.event.head_commit.message, '[skip ci]') == false
steps:
- uses: actions/checkout@v2.3.1
- name: Login to Packages
run: echo '${{ secrets.GITHUB_TOKEN }}' | docker login 'docker.pkg.github.com' -u 'peaceiris' --password-stdin
2020-07-21 10:37:23 +00:00
- run: docker-compose pull --quiet
if: github.event_name == 'pull_request'
2020-03-25 10:37:45 +00:00
- run: make build
2020-07-21 10:37:23 +00:00
- run: make ci
- run: make all
- run: docker-compose push
if: github.ref == 'refs/heads/main'