Skip to content

Fe,be/feature/#567 fe,be 소켓 이벤트 타입 공유하기 #97

Fe,be/feature/#567 fe,be 소켓 이벤트 타입 공유하기

Fe,be/feature/#567 fe,be 소켓 이벤트 타입 공유하기 #97

Workflow file for this run

name: Backend Build
on:
pull_request:
types: [opened, edited]
paths: ["backend/**"]
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
jobs:
build:
runs-on: ubuntu-latest
if: github.event.pull_request.base.ref == 'dev'
defaults:
run:
working-directory: ./backend
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Generate .env file
run: echo "DOCKER_USERNAME=${{ secrets.DOCKER_USERNAME }}" >> .env
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Setup docker-compose
uses: KengoTODA/actions-setup-docker-compose@v1.2.1
with:
version: "2.24.5"
- name: Create a Builder Instance
run: |
docker buildx create --name buildx
docker buildx use buildx
- name: Build & Push Docker Cache
run: |
docker-compose -f compose.cache-export.yml build --builder buildx --build-arg BUILDKIT_INLINE_CACHE=1
docker-compose -f compose.cache-export.yml push