Files
dokploy/.github/workflows/deploy.yml
2024-08-01 00:26:25 -06:00

40 lines
973 B
YAML

name: Build and Publish Docker image
on:
push:
branches: ["feat/docker-image-apps"]
pull_request:
branches: ["main"]
env:
IMAGE_NAME: dokploy/website:latest
jobs:
build-and-push-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 Docker image
# run: docker build --platform linux/amd64 --tag dokploy/website:testing -f Dockerfile .
# - name: Push Docker image
# run: docker push dokploy/website:latest
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile.docs
push: true
tags: dokploy/docs:latest
platforms: linux/amd64