Skip to content

Commit

Permalink
update cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelreit committed Aug 9, 2024
1 parent f146af7 commit ebb4804
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand All @@ -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

0 comments on commit ebb4804

Please sign in to comment.