Docker Monorepo Publish
ActionsTags
(2)Deploys multiple Dockerfile based on files changed in a monorepo
# .github/workflows/docker.yml
name: Deploy to Docker
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build and push changes
uses: harrygogonis/docker-monorepo-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Consider the following monorepo:
project
├── dashboard
│ ├── Dockerfile
│ └── index.php
├── monitoring
│ ├── Dockerfile
│ └── main.js
├── scripts
└── make.sh
Changes to monitoring/**
or dashboard/**
in a push to master will build and deploy a docker image.
Changes to scripts/**
will not trigger a build.
Docker Monorepo Publish is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.