Files
orders/.gitea/workflows/build.yaml
Ruslan Bakiev 3ecf082643
Some checks are pending
Build and deploy Docker image / build (push) Waiting to run
Configure builder registry deployment
2026-06-01 17:28:27 +05:00

30 lines
761 B
YAML

name: Build and deploy Docker image
on:
push:
branches: [main]
jobs:
build:
runs-on: builder
env:
IMAGE: gitea.dsrptlab.com/optovia/orders/orders
steps:
- uses: actions/checkout@v4
- name: Login to Gitea Registry
uses: docker/login-action@v3
with:
registry: gitea.dsrptlab.com
username: ${{ gitea.actor }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
run: |
docker build -t "$IMAGE:latest" -t "$IMAGE:${{ gitea.sha }}" .
docker push "$IMAGE:latest"
docker push "$IMAGE:${{ gitea.sha }}"
- name: Deploy to Dokploy
run: curl -fsS -X POST "https://ind.dsrptlab.com/api/deploy/8KU24cMi_nHB4S16dhDB3"