Skip to content

Merge pull request #102 from sm-cloud-system/dev #25

Merge pull request #102 from sm-cloud-system/dev

Merge pull request #102 from sm-cloud-system/dev #25

Workflow file for this run

name: Global Sookmyung Front CI
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js 22.11.0
uses: actions/setup-node@v2
with:
node-version: '18.20.0'
- name: Install dependencies
run: |
yarn install
- name: Cache Node modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-modules-
- name: Build project
run: |
yarn build
- name: set up docker buildx
uses: docker/setup-buildx-action@v2
- name: github container registry login
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- name: build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/global-sookmyung-front:latest