diff --git a/.github/workflows/backend-prod-cd.yml b/.github/workflows/backend-prod-cd.yml index 5c9fe6d..eeb36c8 100644 --- a/.github/workflows/backend-prod-cd.yml +++ b/.github/workflows/backend-prod-cd.yml @@ -40,7 +40,6 @@ jobs: needs: [ backend-docker-build-and-push ] if: ${{ needs.backend-docker-build-and-push.result == 'success' }} runs-on: [ self-hosted, enble-runner ] - timeout-minutes: 2 # 이 작업은 2분 후에 타임아웃됩니다. steps: - name: Checkout code uses: actions/checkout@v3 @@ -49,6 +48,7 @@ jobs: run: | echo "${{ secrets.PEM_KEY }}" > pem_key chmod 600 pem_key + shell: bash - name: WAS 인스턴스 접속 및 애플리케이션 실행 (첫 번째 시도) run: | @@ -57,6 +57,7 @@ jobs: docker pull ${{ env.DOCKER_HUB_REPOSITORY }}:${{ github.sha }} docker run -d -p 8080:8080 --name agilehub-backend ${{ env.DOCKER_HUB_REPOSITORY }}:${{ github.sha }} EOF + shell: bash attempt-with-second-runner: needs: [ attempt-with-first-runner ]