ci: Add docker-compose.yml (#406)

This commit is contained in:
Shohei Ueda
2020-07-21 19:37:23 +09:00
committed by GitHub
parent 09b03c0bb1
commit a2712f7b92
3 changed files with 29 additions and 35 deletions

View File

@@ -10,6 +10,7 @@ on:
- '.nvmrc'
- 'Dockerfile'
- 'Makefile'
- 'docker-compose.yml'
pull_request:
types:
- opened
@@ -20,6 +21,7 @@ on:
- '.nvmrc'
- 'Dockerfile'
- 'Makefile'
- 'docker-compose.yml'
jobs:
skipci:
@@ -34,10 +36,10 @@ jobs:
- 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
- run: make pull
- run: docker-compose pull --quiet
if: github.event_name == 'pull_request'
- run: make build
- run: make cirun cmd="npm ci"
- run: make ciall
- run: make push
- run: make ci
- run: make all
- run: docker-compose push
if: github.ref == 'refs/heads/main'