Skip to content

Commit

Permalink
removing build dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmdksh committed Jun 21, 2024
1 parent 16e1fa2 commit efc4fd2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 25 deletions.
27 changes: 3 additions & 24 deletions .github/workflows/staging-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,7 @@ on:
- staging

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ghcr.io/generalmagicio/pw-backend:staging

deploy:
needs: publish
runs-on: ubuntu-latest
steps:
- name: SSH and Redeploy Staging
Expand All @@ -43,4 +20,6 @@ jobs:
cd rpgf4-pw-backend
docker-compose down -v
docker image prune -a --force
docker-compose up -d
git checkout staging
git pull origin staging
docker-compose up -d --build
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ version: '3'

services:
pw-backend:
image: ghcr.io/GeneralMagicio/pw-backend:staging
build:
context: .
container_name: rpgf4-pw-backend
restart: always
ports:
Expand Down

0 comments on commit efc4fd2

Please sign in to comment.