Configure Gitea workflow to run on self-hosted labels and support .github/workflows
Build and Deploy (Gitea) / build-and-deploy (push) Waiting to run Details

This commit is contained in:
Sidney Gomes 2026-07-20 18:48:30 -03:00
parent 2a6933c6f1
commit 95f2f931ce
2 changed files with 22 additions and 1 deletions

View File

@ -6,7 +6,7 @@ on:
jobs: jobs:
build-and-deploy: build-and-deploy:
runs-on: ubuntu-latest runs-on: self-hosted
steps: steps:
- name: Checkout code - name: Checkout code

21
.github/workflows/deploy.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Build and Deploy (Gitea)
on:
push:
branches: [ main ]
jobs:
build-and-deploy:
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build Web App
run: |
docker build --no-cache -t microtecflix-app:local .
- name: Deploy to Portainer / Docker Swarm
run: |
docker service update --force --image microtecflix-app:local microtecflix_microtecflix