ci: split docker build and deploy into separate jobs
This commit is contained in:
1 parent
d3bd4df934
commit
1a00ceb4c4
1 file changed
+8
@@ -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
|
||||
|
||||
Reference in new issue
Block a user