update workflow
Some checks failed
Build and Push Docker Image - HEC IA Wiki / build-and-push (push) Failing after 1m1s

This commit is contained in:
vorpax
2026-02-02 10:56:08 +01:00
parent 840910c6ee
commit d23d427440
2 changed files with 21 additions and 8 deletions

View File

@@ -47,11 +47,4 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Deploy stack
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: git pull && docker compose -f compose.yaml pull && docker compose up -d

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

@@ -0,0 +1,20 @@
name: Build and Push Docker Image - HEC IA Wiki
on:
push:
branches:
- main
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy stack
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: cd "/home/${secrets.USERNAME}/docker/wiki-hecia" && git pull && docker compose -f compose.yaml pull && docker compose up -d