Skip to content

Add GitHub Actions workflows for Docker build and application release#206

Open
djoven89 wants to merge 1 commit into
developfrom
feat/app-deploy
Open

Add GitHub Actions workflows for Docker build and application release#206
djoven89 wants to merge 1 commit into
developfrom
feat/app-deploy

Conversation

@djoven89
Copy link
Copy Markdown
Collaborator

This pull request introduces two new GitHub Actions workflows to automate Docker image building and deployment to CapRover. The workflows provide a standardized and secure process for building Docker images on code pushes and releasing application versions via manual triggers.

CI/CD Workflow Additions:

New Docker Build Workflow:

  • Adds .github/workflows/docker-build.yaml to automatically build Docker images on every push, generating a unique image tag based on the commit hash and displaying image details for verification.

New Release and Deployment Workflow:

  • Adds .github/workflows/release.yaml to enable manual releases via workflow dispatch, supporting selection of the target CapRover application (api-testing01, api-staging, or api). This workflow builds and pushes the Docker image to a private registry, securely selects the appropriate CapRover deployment token based on the chosen environment, and deploys the image to CapRover using the official GitHub Action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants