ci: split docker build and deploy into separate jobs
Build & Deploy / build (push) Successful in 47s
Build & Deploy / docker (push) Successful in 13s
Build & Deploy / deploy (push) Failing after 3s

This commit is contained in:
L HEREEC Kevin INNOV/PTFM committed 2026-07-13 12:25:23 +02:00
1 parent d3bd4df934
commit 1a00ceb4c4
1 file changed
+8
+8
View File
@@ -42,6 +42,14 @@ jobs:
docker push ${IMAGE}:latest
docker push ${IMAGE}:${{ github.sha }}
deploy:
needs: docker
runs-on: dind
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
steps:
- name: Checkout repository
run: git clone --depth=1 http://x-access-token:${{ github.token }}@192.168.1.39:3000/${{ github.repository }}.git .
- name: Deploy on NAS
run: |
apk add --no-cache openssh-client sshpass