chore: setup docker, gitea actions pipeline and docs
Some checks failed
Build and Deploy / build-and-push (push) Failing after 3m18s

This commit is contained in:
Cauê Faleiros
2026-02-19 14:25:42 -03:00
parent a5fe089e2e
commit 25384beaa7
5 changed files with 167 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
name: Build and Deploy
on:
push:
branches:
- main
- master
jobs:
build-and-push:
runs-on: ubuntu-latest # Adjust if your runner uses a different label
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Gitea Registry
uses: docker/login-action@v3
with:
registry: gitea.blyzer.com.br
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
gitea.blyzer.com.br/${{ gitea.repository }}:latest
gitea.blyzer.com.br/${{ gitea.repository }}:${{ gitea.sha }}
build-args: |
API_KEY=${{ secrets.API_KEY || '' }}
- name: Deploy to Portainer
run: |
if [ -n "${{ secrets.PORTAINER_WEBHOOK }}" ]; then
curl -k -X POST "${{ secrets.PORTAINER_WEBHOOK }}"
else
echo "PORTAINER_WEBHOOK secret not set, skipping deployment trigger."
fi