Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/SAIG-KMITL/edusaig
Browse files Browse the repository at this point in the history
  • Loading branch information
Ganthepro committed Nov 30, 2024
2 parents bf3cb15 + 20caa45 commit 5fd28ab
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build and deploy to an VM

on:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: write

jobs:
build-and-deploy:
runs-on: self-hosted
steps:
- name: Copy Repository
uses: actions/checkout@v4

- name: 'Create env file'
run: |
touch .env
echo "NEXT_PUBLIC_API_URL=${{ secrets.NEXT_PUBLIC_API_URL }}" >> .env
cat .env
- name: Running Docker Compose
run: docker compose up -d --build

0 comments on commit 5fd28ab

Please sign in to comment.