Skip to content

Commit

Permalink
Update �deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
This2sho authored Mar 16, 2024
1 parent eb71aff commit eb0ebe2
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ on:
jobs:
build-and-push:
runs-on: ubuntu-latest
# 가장 최신의 Ubuntu 러너를 사용합니다.

steps:
- name: Checkout Repository
uses: actions/checkout@v2
# 현재 리포지토리를 체크아웃합니다.

- name: JDK 17을 설치합니다
uses: actions/setup-java@v4
Expand All @@ -34,27 +32,19 @@ jobs:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
# Docker Buildx를 설정합니다.

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
# GitHub Secret에서 Docker Hub 사용자 이름을 가져옵니다.
password: ${{ secrets.DOCKERHUB_TOKEN }}
# GitHub Secret에서 Docker Hub 액세스 토큰을 가져옵니다.

- name: 위치 찾기
run: pwd && ls

- name: Build and Push
uses: docker/build-push-action@v2
with:
context: .
# Dockerfile이 있는 위치입니다.
file: Dockerfile
# Dockerfile의 경로입니다.
push: true # 이미지를 레지스트리에 푸시합니다.
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/pct-backend
platforms: linux/amd64

Expand Down

0 comments on commit eb0ebe2

Please sign in to comment.