Skip to content

Basic code execution completed #16

Basic code execution completed

Basic code execution completed #16

Workflow file for this run

name: Docker Image CI for Code Runner Image
on: [push]
env:
REGISTRY: ghcr.io
IMAGE_NAME: manangandhi1810/leetcode-clone
defaults:
run:
working-directory: code-runner
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
id: push
run: |
npm install
npm run docker:build
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}