Update .gitea/workflows/deploy.yml
Some checks failed
Build and Deploy / build (push) Failing after 19s

This commit is contained in:
2025-04-06 14:07:43 +02:00
parent bc8f358828
commit 1109dd03a4

View File

@@ -4,29 +4,30 @@ on:
push: push:
branches: branches:
- main - main
jobs: jobs:
build: build:
runs-on: linux runs-on: linux
container:
image: docker:20.10.7-dind # Use Docker-in-Docker for building images
options: --privileged # Required for Docker-in-Docker
steps: steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v2
- name: Login to Docker Registry - name: Log in to Gitea Container Registry
uses: docker/login-action@v2 uses: docker/login-action@v2
with: with:
registry: gitea.abzk.fr registry: gitea.abzk.fr
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push Docker Image - name: Build and push Docker image
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with:
context: . context: .
file: ./Dockerfile
push: true push: true
tags: gitea.abzk.fr/jarvis:latest tags: gitea.abzk.fr/MrZaiko/Jarvis:latest
- name: Deploy to Portainer
run: |
curl -X POST https://portainer.abzk.fr/api/stacks/1/redeploy \
-H "X-API-Key: ${{ secrets.PORTAINER_API_KEY }}"