Update .gitea/workflows/deploy.yml
Some checks failed
Build and Deploy / build (push) Failing after 19s
Some checks failed
Build and Deploy / build (push) Failing after 19s
This commit is contained in:
@@ -4,29 +4,30 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
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:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to Docker Registry
|
||||
- name: Log in to Gitea Container Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: gitea.abzk.fr
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Build and Push Docker Image
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: gitea.abzk.fr/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 }}"
|
||||
tags: gitea.abzk.fr/MrZaiko/Jarvis:latest
|
||||
Reference in New Issue
Block a user