Skip to content

Commit

Permalink
Splitting up the SPA and backend from each other
Browse files Browse the repository at this point in the history
  • Loading branch information
wisebaldone committed Mar 27, 2022
1 parent 27b26d4 commit e6bbc19
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 7,094 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/app.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Todo App
name: Build Todo App ( Combined Frontend + Backend )

on:
push:
Expand Down Expand Up @@ -43,4 +43,5 @@ jobs:
push: true
tags: |
ghcr.io/csse6400/todo-app:latest

35 changes: 35 additions & 0 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build Todo App ( Backend )

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: ./backend
file: backend/Dockerfile
push: true
tags: |
ghcr.io/csse6400/todo-app:backend-latest

31 changes: 31 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build Todo App ( Frontend )

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v2

- name: Frontend Dependencies
uses: jorelali/setup-elm@v3
with:
elm-version: 0.19.1

- name: Compile Frontend
working-directory: ./frontend
run: elm make src/Main.elm

- name: Release Frontend
uses: softprops/action-gh-release@v1
with:
files: |
./frontend/index.html

Loading

0 comments on commit e6bbc19

Please sign in to comment.