Skip to content

Commit 62ed68a

Browse files
committed
deploy
1 parent 212db74 commit 62ed68a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/docker-deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@ jobs:
3535
# ssh-add "$HOME/.ssh/id_rsa"
3636

3737
# 准备 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-
4338
- name: Upload SSH keys as artifact
4439
uses: actions/download-artifact@v3
4540
with:
4641
name: ssh-keys
4742
path: deploy
4843

44+
- name: Prepare SSH key
45+
run: |
46+
echo "${{ secrets.SSH_PRIVATE_KEY }}" > deploy/id_rsa
47+
echo "${{ secrets.SSH_PUBLIC_KEY }}" > deploy/id_rsa.pub
48+
4949
# 构建Docker镜像
5050
- name: Build and push Docker image
5151
id: docker_build

0 commit comments

Comments
 (0)