Skip to content

Commit

Permalink
chore: 로그 출력 추가 및 컨테이너 명 지정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeon0208 committed Oct 10, 2024
1 parent 040a77c commit 8f4aed2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/backend-cd-prod.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

name: backend-cd-prod

on:
Expand Down Expand Up @@ -88,13 +89,16 @@ jobs:
docker run -d --platform linux/arm64 --name $DOCKER_CONTAINER_NAME -v /var/logs/ody-prod-logs:/ody-prod-logs -p 80:8080 -e SPRING_PROFILES_ACTIVE=prod -e JASYPT_ENCRYPTOR_PASSWORD=${{ secrets.JASYPT_PASSWORD }} ${{ secrets.DOCKERHUB_USERNAME }}/$DOCKERHUB_REPOSITORY:${{ github.sha }}-prod
- name: Container Health Check
id: ody-prod-app-container
uses: stringbean/docker-healthcheck-action@v1
with:
container: $DOCKER_CONTAINER_NAME
container: ody-prod-app
wait-time: 50
require-status: running
require-healthy: true
continue-on-error: true

- run: echo "Container is ${{ steps.ody-prod-app-container.outputs.status }}"

- name: Check Docker Process
run: docker ps

0 comments on commit 8f4aed2

Please sign in to comment.