dependabot[bot] c921422e37
ci: bump actions/checkout from 2.4.0 to 3 (#715)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-02 21:13:55 +09:00

39 lines
981 B
YAML

name: 'Dev Image CI'
on:
workflow_dispatch:
schedule:
- cron: '11 11 * * *'
push:
branches:
- main
paths:
- '.github/workflows/dev-image.yml'
- '.dockerignore'
- '.nvmrc'
- 'Dockerfile'
- 'Makefile'
- 'docker-compose.yml'
pull_request:
paths:
- '.github/workflows/dev-image.yml'
- '.dockerignore'
- '.nvmrc'
- 'Dockerfile'
- 'Makefile'
- 'docker-compose.yml'
jobs:
dev-image-test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Login to Packages
run: echo '${{ secrets.GITHUB_TOKEN }}' | docker login 'docker.pkg.github.com' -u 'peaceiris' --password-stdin
- run: docker-compose pull --quiet
if: ${{ github.event_name == 'pull_request' }}
- run: make build
- run: docker images
- run: docker-compose push
if: ${{ github.ref == 'refs/heads/main' && github.event.repository.fork == false }}