Run workflow natively, skip redundant image rebuild
This commit is contained in:
@@ -8,13 +8,8 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: debian:bookworm-slim
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install SSH client
|
|
||||||
run: apt-get update -y && apt-get install -y --no-install-recommends openssh-client
|
|
||||||
|
|
||||||
- name: Deploy via SSH
|
- name: Deploy via SSH
|
||||||
env:
|
env:
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
@@ -28,6 +23,6 @@ jobs:
|
|||||||
ssh ${SERVER_USER}@${SERVER_IP} "
|
ssh ${SERVER_USER}@${SERVER_IP} "
|
||||||
cd /data/projects/r/stAndrews &&
|
cd /data/projects/r/stAndrews &&
|
||||||
git pull &&
|
git pull &&
|
||||||
docker compose up -d --build &&
|
docker compose up -d &&
|
||||||
docker exec analytics-gateway caddy reload --config /etc/caddy/Caddyfile --adapter caddyfile
|
docker exec analytics-gateway caddy reload --config /etc/caddy/Caddyfile --adapter caddyfile
|
||||||
"
|
"
|
||||||
|
|||||||
Reference in New Issue
Block a user