Skip to content

feat: anime not finish #13

feat: anime not finish

feat: anime not finish #13

Workflow file for this run

name: Docker Publish
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
REGISTRY: docker.io
BACKEND_IMAGE_NAME: ${{ secrets.DOCKER_USERNAME }}/lithium-player-backend
FRONTEND_IMAGE_NAME: ${{ secrets.DOCKER_USERNAME }}/lithium-player-frontend
IMAGE_TAG: ${{ github.sha }}
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Backend
uses: docker/build-push-action@v6
with:
context: ./backend
push: true
tags: |
${{ env.BACKEND_IMAGE_NAME }}:latest
${{ env.FRONTEND_IMAGE_NAME }}:${{ env.IMAGE_TAG }}
- name: copy pnpm-lock
run: cp -r pnpm-lock.yaml ./frontend/web/pnpm-lock.yaml
- name: Build and push Frontend
uses: docker/build-push-action@v6
with:
context: ./frontend/web
push: true
tags: |
${{ env.FRONTEND_IMAGE_NAME }}:latest
${{ env.FRONTEND_IMAGE_NAME }}:${{ env.IMAGE_TAG }}