Skip to content

perf: Refactored the entire backend #18

perf: Refactored the entire backend

perf: Refactored the entire backend #18

name: Docker Build SeiunSodou Backend
on:
push:
branches:
- master
paths:
- "backend/**"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: ./backend
push: true
tags: |
ghcr.io/mejiro-ardan/seiunsodou/backend:${{ github.sha }}
ghcr.io/mejiro-ardan/seiunsodou/backend:latest