Skip to content

Commit

Permalink
Merge pull request #107 from upa-r-upa/chore/action-docker-hub
Browse files Browse the repository at this point in the history
액션에서 도커 빌드 및 push 진행하도록 추가
  • Loading branch information
upa-r-upa authored Jul 9, 2024
2 parents c02f5d6 + c124e06 commit c7d1f2e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build, Push on Docker Hub

on:
push:
branches:
- main

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
push: true
file: ./Dockerfile
tags: ${{ env.DOCKER_IMAGE_TAG }}
platforms: linux/amd64,linux/arm64
File renamed without changes.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
container_name: taskie-backend-container
image: taskie-backend
ports:
- "8000:8000"
- "88:8000"
environment:
JWT_SECRET_KEY: ${JWT_SECRET_KEY}
TSK_DB_URL: ${TSK_DB_URL}
Expand Down

0 comments on commit c7d1f2e

Please sign in to comment.