Skip to content

Docs:add ci badge

Docs:add ci badge #26

Workflow file for this run

name: CI
on:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
jobs:
ci:
name: build source and build docker image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Yarn Cache
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn install
# - run: yarn run tsc
# if: ${{ always() }}
- name: build
run: |
yarn build:backend --config ../../app-config.yaml
# - name: List Files After remote Checkout
# if: ${{ always() }}
# run: |
# echo " -------------------------------------------------------------------------- "
# pwd
# echo " -------------------------------------------------------------------------- "
# ls -a
# echo " -------------------------------------------------------------------------- "
# ls -al .github/workflows
# echo " -------------------------------------------------------------------------- "
# ls -al .github
# echo " -------------------------------------------------------------------------- "
# ls -al actions
# echo " -------------------------------------------------------------------------- "
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to the Container registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
push: true
tags: oscka/backstage-custom:latest
cache-from: type=gha # 여기서 gha 는 Guthub Actions 용 캐시를 의미합니다.
cache-to: type=gha,mode=max