Skip to content

✨ fix die code

✨ fix die code #21

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Setup pnpm
uses: pnpm/[email protected]
- run: pnpm install
- run: pnpm build
- name: docker login
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u xiyang6666 --password-stdin
- name: Build the Docker image
run: docker build . --file Dockerfile --tag xiyang6666/mainpage:$(git rev-parse --abbrev-ref HEAD)-${{ github.run_number }}
- name: Push the Docker image
run: docker push xiyang6666/mainpage:$(git rev-parse --abbrev-ref HEAD)-${{ github.run_number }}