Deploy skeleton-app
Build and Deploy / build-and-push (push) Failing after 58s
Details
Build and Deploy / build-and-push (push) Failing after 58s
Details
This commit is contained in:
parent
083982814f
commit
9e47c03b0d
|
|
@ -18,7 +18,7 @@ jobs:
|
||||||
username: ${{ gitea.actor }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.CI_TOKEN }}
|
password: ${{ secrets.CI_TOKEN }}
|
||||||
|
|
||||||
- name: Build and Pushz
|
- name: Build and Push
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
|
@ -28,5 +28,6 @@ jobs:
|
||||||
- name: Deploy to Server
|
- name: Deploy to Server
|
||||||
run: |
|
run: |
|
||||||
# Here we tell the server to pull the new image and restart
|
# Here we tell the server to pull the new image and restart
|
||||||
|
echo "${{ secrets.CI_TOKEN }}" | docker login git.ludops.com -u ${{ gitea.actor }} --password-stdin
|
||||||
docker compose -f docker-compose.prod.yml pull
|
docker compose -f docker-compose.prod.yml pull
|
||||||
docker compose -f docker-compose.prod.yml up -d
|
docker compose -f docker-compose.prod.yml up -d
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
services:
|
||||||
|
skeleton-app:
|
||||||
|
image: git.ludops.com/ludops/ludops-skeleton:latest
|
||||||
|
container_name: ludops-skeleton-app
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
- NODE_ENV=production
|
||||||
|
- PORT=3000
|
||||||
|
# We point to the shared DB we set up earlier
|
||||||
|
- DATABASE_URL=postgres://gitea:gitea@ludops-postgres:5432/skeleton_db
|
||||||
|
networks:
|
||||||
|
- proxy-tier # For NPM to find us
|
||||||
|
- infra-network # For us to find the Postgres DB
|
||||||
|
|
||||||
|
networks:
|
||||||
|
proxy-tier:
|
||||||
|
external: true
|
||||||
|
infra-network:
|
||||||
|
external: true
|
||||||
Loading…
Reference in New Issue