forked from peaceiris/actions-gh-pages
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) 路 981 Bytes
/
dev-image.yml
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
34
35
36
37
38
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 }}