Skip to content

update backend port to 5050 #20

update backend port to 5050

update backend port to 5050 #20

Workflow file for this run

name: Build
on:
push:
branches:
- main
env:
IMAGE: ${{ secrets.IMAGE_URL }}
PAT: ${{ secrets.PAT }}
jobs:
build-api:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./api
steps:
- uses: actions/checkout@v4
- name: Registry login
run: echo $PAT | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
- name: Pull Docker Image
run: docker pull $IMAGE/api:latest
- name: Tag Docker Image
run: docker build . --tag $IMAGE/api:latest --cache-from $IMAGE:latest
- name: Push Docker Image
run: docker push $IMAGE/api:latest
build-web:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./web
steps:
- uses: actions/checkout@v4
- name: Registry login
run: echo $PAT | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
- name: Pull Docker Image
run: docker pull $IMAGE/web:latest
- name: Tag Docker Image
run: docker build . --tag $IMAGE/web:latest --cache-from $IMAGE:latest
- name: Push Docker Image
run: docker push $IMAGE/web:latest