-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f146af7
commit ebb4804
Showing
1 changed file
with
2 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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 |