Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

9 Commits

Repository files navigation

🚀 Dokploy Github Action

This GitHub Action triggers a deployment in Dokploy by updating the Docker image for a specific application.

Useful for automating deployments as part of your CI/CD pipeline.


📦 Features

  • 🔒 Securely authenticates via API token
  • 📦 Updates a Dokploy application with a new Docker image
  • ⚙️ Easily integrates into your CI workflows

🛠️ Usage

Add this step to your GitHub Actions workflow:

name: Build Docker imageson:
push:
tags:
- 'v*'jobs:
build-and-push-dockerfile-image:
runs-on: ubuntu-latestpermissions:
contents: readpackages: writesteps:
- name: Checkout repositoryuses: actions/checkout@v3
- name: Log in to GitHub Container Registryuses: docker/login-action@v2with:
registry: ghcr.iousername: ${{ github.actor }}password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker imageuses: docker/build-push-action@v4with:
context: .file: ./Dockerfilepush: truetags: | ghcr.io/${{ github.repository }}:latest ghcr.io/${{ github.repository }}:${{ github.sha }}platforms: linux/amd64
- name: Deploy to Dokployuses: tacticlaunch/dokploy-github-action@0.1.0with:
token: ${{ secrets.DOKPLOY_TOKEN }} # Generate in Dokploy settings (Settings -> Profile)application_id: ${{ secrets.DOKPLOY_APP_ID }} # From /api/project.all or last id in the application url (`https://DOKPLOY_URL/dashboard/project/jsY-g3aa0j3CjZJtpN18q/services/application/c_ifimm4gStxYSv8PR74R` - `c_ifimm4gStxYSv8PR74R` is app id)image: ${{ steps.meta.outputs.tags }} # e.g. ghcr.io/username/app:latestbase_url: ${{ secrets.DOKPLOY_URL }} # e.g. https://my-dokploy-instance.com

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors