Files
webapp/.gitea/workflows/build.yaml
Ruslan Bakiev 84e857ffc1
Some checks failed
Build Docker Image / build (push) Failing after 34s
Migrate from Infisical to Vault for secret loading
2026-03-09 14:30:10 +07:00

40 lines
1.0 KiB
YAML

name: Build Docker Image
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=dokploy-network
- 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
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: gitea.dsrptlab.com/optovia/webapp/webapp:latest
network: dokploy-network
build-args: |
VAULT_ADDR=${{ secrets.VAULT_ADDR }}
VAULT_TOKEN=${{ secrets.VAULT_TOKEN }}
VAULT_SHARED_PATH=shared
VAULT_PROJECT_PATH=webapp
- name: Deploy to Dokploy
run: curl -X POST "https://dokploy.optovia.ru/api/deploy/0_iNAXPDx28BLZIddGTzB"