Files
taco-blog/.gitea/workflows/build-image.yaml
taco fa7c93f175
All checks were successful
Build and Publish Docker Image / build (push) Successful in 16s
Please god work
2026-05-17 16:39:02 -06:00

37 lines
1.1 KiB
YAML

name: Build and Publish Docker Image
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: ${{ gitea.server_url }}
username: ${{ gitea.actor }}
password: ${{ secrets.PAT }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
git.toomuchtaco.net/${{ gitea.repository }}:latest
git.toomuchtaco.net/${{ gitea.repository }}:${{ gitea.sha }}
- name: Trigger Komodo Stack Redeploy
run: |
curl -X POST "${{ secrets.KOMODO_HOST }}/api/execute/RunSync" \
-H "X-Api-Key: ${{ secrets.KOMODO_API_KEY }}" \
-H "X-Api-Secret: ${{ secrets.KOMODO_API_SECRET }}" \
-H "Content-Type: application/json" \
-d '{"sync": "6a0636c08ef0bf623546d494"}'