Skip to content

Commit

Permalink
Merge pull request #29 from Trafix120/next
Browse files Browse the repository at this point in the history
Next
  • Loading branch information
erland-syafiq authored Jun 4, 2024
2 parents 2a1e0c1 + 2ecb9a8 commit 7d9da3b
Show file tree
Hide file tree
Showing 201 changed files with 2,261 additions and 3,420 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/vtmunc-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
- name: Login to docker hub
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- name: Build docker image
run: docker build -t vtmunc/app ./app
run: docker build -t vtmunc/site ./site
- name: Publish images to docker hub
run: docker push vtmunc/app:latest
run: docker push vtmunc/site:latest

deploy:
runs-on: self-hosted
Expand All @@ -25,10 +25,10 @@ jobs:
- name: Login to docker hub
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- name: Pull docker image
run: docker pull vtmunc/app:latest
run: docker pull vtmunc/site:latest
- name: Remove old containers
run: docker rm -f vtmunc || true
- name: Run container
run: docker run -p 8080:8080 -d --name vtmunc vtmunc/app
run: docker run -p 3000:3000 -d --name vtmunc vtmunc/site
- name: Clean up (Removes old containers)
run: docker system prune -f
133 changes: 0 additions & 133 deletions app/.gitignore

This file was deleted.

34 changes: 0 additions & 34 deletions app/Dockerfile

This file was deleted.

Loading

0 comments on commit 7d9da3b

Please sign in to comment.