Add GitHub Actions workflow and Dockerfile for Docker image deployment

This commit is contained in:
Mauricio Siu
2025-03-01 02:43:35 -06:00
parent 4d20a9a25e
commit 0f94dde28c
2 changed files with 65 additions and 0 deletions

29
.github/workflows/deploy.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: Build Docker image
on:
push:
branches: ["canary", "main", "feat/monitoring"]
jobs:
build-and-push-templates-image:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: ./app/Dockerfile
push: true
tags: |
dokploy/templates:latest
platforms: linux/amd64