Skip to content

Update GitHub Actions workflow and README to reflect project changes;… #107

Update GitHub Actions workflow and README to reflect project changes;…

Update GitHub Actions workflow and README to reflect project changes;… #107

Workflow file for this run

name: Build api.upayan.dev Docker Image
on:
push:
branches: ["master"]
paths-ignore:
- "app/**"
pull_request:
branches: ["master"]
paths-ignore:
- "app/**"
permissions:
contents: read
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push Docker Image
run: |
docker build . --tag ghcr.io/upayanmazumder/upayan.dev:latest --build-arg NODE_ENV=production
docker push ghcr.io/upayanmazumder/upayan.dev:latest