Skip to content

Commit

Permalink
changed docker compose prod to point to pulled container
Browse files Browse the repository at this point in the history
  • Loading branch information
leoBitto committed Oct 13, 2024
1 parent e34c3de commit 54151bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@ jobs:
run: |
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 @@ -121,7 +117,7 @@ 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
docker pull ${IMAGE_NAME_LC}
- name: Start container
uses: appleboy/ssh-action@v0.1.3
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
web:
image: djangoforge:latest # Utilizza l'immagine pre-build presente nel registry
image: ghcr.io/leobitto/djangoforge:latest # Utilizza l'immagine pre-build presente nel registry
container_name: web
command: gunicorn base.wsgi:application --bind 0.0.0.0:8000 --workers 3 --timeout 90
volumes:
Expand All @@ -18,7 +18,7 @@ services:
ipv4_address: 192.168.100.2

djangoq:
image: djangoforge:latest # Utilizza l'immagine pre-build presente nel registry
image: ghcr.io/leobitto/djangoforge:latest # Utilizza l'immagine pre-build presente nel registry
container_name: djangoq
command: python manage.py qcluster
volumes:
Expand Down

0 comments on commit 54151bb

Please sign in to comment.