Skip to content

Commit

Permalink
fix: minor deployment fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Veivel committed Jun 18, 2024
1 parent 6c4f210 commit bc0fe3b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/deploy-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- "devops-fix"
- "staging"

jobs:
build_and_push:
Expand All @@ -20,12 +21,6 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

# - name: Extract metadata (tags, labels) for Docker
# id: meta
# uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
# with:
# images: my-docker-hub-namespace/my-docker-hub-repository

- name: Build and push Image
id: push
uses: docker/build-push-action@v4
Expand Down Expand Up @@ -109,5 +104,5 @@ jobs:
port: ${{ secrets.SSH_PORT }}
script: |
cd susunjadwal/susunjadwal-backend-stg
sudo docker compose up
sudo docker compose up -d
11 changes: 6 additions & 5 deletions deploy-stg/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
version: "3.9"

services:
rmq-stg:
susunjadwal-backend-rmq-stg:
image: rabbitmq:management-alpine
restart: unless-stopped
ports:
- "15671-15672:15671-15672"
networks:
- public-web

mongo-stg:
susunjadwal-backend-mongo-stg:
image: mongo:7
restart: unless-stopped
environment:
Expand All @@ -23,15 +23,16 @@ services:
networks:
- public-web

server-stg:
susunjadwal-backend-server-stg:
pull_policy: always
image: ristekoss/susunjadwal-backend:staging
labels:
caddy: api-stg.susunjadwal.ristek.cs.ui.ac.id
caddy.reverse_proxy: "{{upstreams 8006}}"
restart: unless-stopped
depends_on:
- rmq-stg
- mongo-stg
- susunjadwal-backend-rmq-stg
- susunjadwal-backend-mongo-stg
# volumes:
# - ./.env:/app/.env:ro
env_file:
Expand Down

0 comments on commit bc0fe3b

Please sign in to comment.