We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 212db74 commit 62ed68aCopy full SHA for 62ed68a
1 file changed
.github/workflows/docker-deploy.yml
@@ -35,17 +35,17 @@ jobs:
35
# ssh-add "$HOME/.ssh/id_rsa"
36
37
# 准备 SSH Key
38
- - name: Prepare SSH key
39
- run: |
40
- echo "${{ secrets.SSH_PRIVATE_KEY }}" > deploy/id_rsa
41
- echo "${{ secrets.SSH_PUBLIC_KEY }}" > deploy/id_rsa.pub
42
-
43
- name: Upload SSH keys as artifact
44
uses: actions/download-artifact@v3
45
with:
46
name: ssh-keys
47
path: deploy
48
+ - name: Prepare SSH key
+ run: |
+ echo "${{ secrets.SSH_PRIVATE_KEY }}" > deploy/id_rsa
+ echo "${{ secrets.SSH_PUBLIC_KEY }}" > deploy/id_rsa.pub
+
49
# 构建Docker镜像
50
- name: Build and push Docker image
51
id: docker_build
0 commit comments