2020-03-25 10:37:45 +00:00
|
|
|
name: 'Dev Image CI'
|
|
|
|
|
|
|
|
on:
|
2020-07-25 14:59:01 +00:00
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
- cron: '11 11 * * *'
|
2020-03-25 10:37:45 +00:00
|
|
|
push:
|
|
|
|
branches:
|
2020-07-14 03:45:04 +00:00
|
|
|
- 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:
|
|
|
|
dev-image-test:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
2020-11-23 12:43:45 +00:00
|
|
|
- uses: actions/checkout@v2
|
2020-07-08 20:33:46 +00:00
|
|
|
- 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
|
2020-07-08 20:33:46 +00:00
|
|
|
if: github.event_name == 'pull_request'
|
2020-03-25 10:37:45 +00:00
|
|
|
- run: make build
|
2020-07-28 09:59:09 +00:00
|
|
|
- run: docker images
|
2020-07-21 10:37:23 +00:00
|
|
|
- run: docker-compose push
|
2021-01-21 13:10:28 +00:00
|
|
|
if: github.ref == 'refs/heads/main' && github.event.repository.fork == false
|