Skip to content

feat: update path for static files in the server handler to use dynam… #11

feat: update path for static files in the server handler to use dynam…

feat: update path for static files in the server handler to use dynam… #11

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
submodules: 'true'
- name: Git config user
uses: snow-actions/[email protected]
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Verify Change Logs
run: node common/scripts/install-run-rush.js change --verify
- name: Rush Install
run: node common/scripts/install-run-rush.js install
- name: Add hosts to /etc/hosts
run: sudo echo "172.17.0.1 host.docker.internal" | sudo tee -a /etc/hosts
- name: Rush test
run: node common/scripts/install-run-rush.js test --verbose
- name: Rush deploy
run: node common/scripts/install-run-rush.js deploy
# Build and publish image to GitHub Container Registry
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max