Reusable GitHub Actions workflows for docker-cd deployments.
App repo builds image to ghcr.io
-> deploy.yaml updates home-ops
-> docker-cd deploys the changed stack
deploy.yamlupdates a production image tag in home-ops, pinned to the image digest.temp-deploy.yamlcreates temporary PR environments, with optional Traefik auth.temp-cleanup.yamlremoves temporary PR environments.
jobs:
deploy:
uses: wajeht/docker-cd-deploy-workflow/.github/workflows/deploy.yaml@v0.0.25
with:
app-path: apps/your-app
service-name: your-app
tag: ${{ needs.build.outputs.tag }}
secrets:
GH_TOKEN: ${{ secrets.GH_TOKEN }}For PR previews, app repos can use:
temp-deployfor a normal temp app with production middleware labelstemp-deploy-with-authplusauth-middleware: oauth2-admin@filefor an auth-protected temp app
Distributed under the MIT License © wajeht. See LICENSE for more information.