Skip to content

Merge pull request #73 from CS3219-AY2324S1/serverless-function #39

Merge pull request #73 from CS3219-AY2324S1/serverless-function

Merge pull request #73 from CS3219-AY2324S1/serverless-function #39

name: build-backend
on:
push:
branches:
- master
jobs:
build-push-images:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build
run: cd backend && cp .env.docker.example .env.docker && docker compose --env-file .env.docker build
- name: Push
run: cd backend && docker compose --env-file .env.docker push