update workflow
Some checks failed
Build and Push Docker Image - HEC IA Wiki / build-and-push (push) Failing after 1m1s
Some checks failed
Build and Push Docker Image - HEC IA Wiki / build-and-push (push) Failing after 1m1s
This commit is contained in:
9
.github/workflows/build-deploy.yml
vendored
9
.github/workflows/build-deploy.yml
vendored
@@ -47,11 +47,4 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
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
20
.github/workflows/deploy.yml
vendored
Normal 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
|
||||||
Reference in New Issue
Block a user