Dev Image CI #925
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Login to Packages | |
run: echo '${{ secrets.GH_TOKEN }}' | docker login 'docker.pkg.github.com' -u 'kimmy214' --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 }} |