Skip to content

Refactor Dockerfile to update ORIGIN environment variable #13

Refactor Dockerfile to update ORIGIN environment variable

Refactor Dockerfile to update ORIGIN environment variable #13

Workflow file for this run

name: Docker Image CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
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/file-server:latest --build-arg NODE_ENV=production
docker push ghcr.io/upayanmazumder/file-server:latest