Skip to content

Commit

Permalink
chore: fix deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
dlackty committed Dec 10, 2023
1 parent 8f027f9 commit 7a0e1b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
username: ${{ secrets.PROD_SSH_DEPLOY_USER }}
key: ${{ secrets.PROD_SSH_PRIVATE_KEY }}
source: './docker-compose.yml'
target: ${{env.COMPOSE_FILE_PATH}}
target: ${{ secrets.COMPOSE_FILE_PATH }}

# https://docs.github.com/en/packages/learn-github-packages/introduction-to-github-packages#authenticating-to-github-packages
- name: Ssh server and run docker-compose
Expand All @@ -76,7 +76,7 @@ jobs:
key: ${{ secrets.PROD_SSH_PRIVATE_KEY }}
script: |
echo "==Docker Login=="
echo "${{secrets.ACCESS_PACKAGE_TOKEN}}" | sudo docker login ${{env.REGISTRY}} -u ${{env.GITHUB_IDENTITY}} --password-stdin
echo "${{secrets.ACCESS_PACKAGE_TOKEN}}" | docker login ${{env.REGISTRY}} -u ${{env.GITHUB_IDENTITY}} --password-stdin
echo "==Pull Image=="
sudo docker-compose -f ${{env.COMPOSE_FILE_PATH}}/docker-compose.yml pull
echo "==Compose Up=="
Expand Down

0 comments on commit 7a0e1b8

Please sign in to comment.