-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (26 loc) · 876 Bytes
/
backend.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 }}