Skip to content

Commit

Permalink
separated pull and start, added debug
Browse files Browse the repository at this point in the history
  • Loading branch information
leoBitto committed Oct 13, 2024
1 parent c67bd0a commit e34c3de
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,12 @@ jobs:

- name: Set lower case owner and repo names
run: |
echo "OWNER_LC=${{ github.repository_owner }}" >>${GITHUB_ENV}
echo "IMAGE_NAME=${{ github.repository }}" >>${GITHUB_ENV}
echo "IMAGE_NAME=${{ env.REGISTRY }}/${{ github.repository }}" >>${GITHUB_ENV}
echo "IMAGE_NAME_LC=${IMAGE_NAME,,}" >>${GITHUB_ENV}
- name: debug
run: |
echo ${IMAGE_NAME_LC}
- name: Pull containers from GHCR
uses: appleboy/ssh-action@v0.1.3
Expand All @@ -118,8 +121,15 @@ jobs:
key: ${{ secrets.PRIVATE_KEY }}
script: |
echo ${{ secrets.GHCR_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
docker pull ghcr.io/leobitto/djangoforge:latest
- name: Start container
uses: appleboy/ssh-action@v0.1.3
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
script: |
docker compose -f /opt/docker-compose.prod.yml up -d --force-recreate
# Step 5: Configurazione di Nginx
Expand Down

0 comments on commit e34c3de

Please sign in to comment.