peaceiris/actions-suggest-related-links

View on GitHub
.github/workflows/dev-image.yml

Summary

Maintainability
Test Coverage
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-18.04
    timeout-minutes: 5
    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: make build
      - run: docker images
      - run: make ci
      - run: make all
      - run: docker-compose push
        if: github.ref == 'refs/heads/main'