diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 5f29107..941e395 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -56,13 +56,13 @@ jobs: run: echo ${{ steps.build-and-push.outputs.digest }} - name: Copy Docker Compose file to server - uses: appleboy/drone-scp@v1.1.0 + uses: appleboy/scp-action@v0.1.7 with: host: ${{ env.SSH_HOST }} username: ${{ env.SSH_USER }} key: ${{ env.SSH_PRIVATE_KEY }} source: docker-compose.yml - target: /home/${{ env.SSH_USER }}/docker-compose.yml + target: /home/${{ env.SSH_USER }}/ - name: Pull image and start container uses: appleboy/ssh-action@v1.0.3 @@ -75,5 +75,3 @@ jobs: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin docker compose up -d rm -rf docker-compose.yml - # Explainaition for the last line: - # docker run -d -p [externalPort]:[internalPort] --name [imageName] ghcr.io/[repositoryOwner]/[repositoryName]:latest