From 8f0791566bb35b58e9f20be4705f8a7b27e15ee0 Mon Sep 17 00:00:00 2001 From: Jeong Se Ho <125888614+JeongSH1@users.noreply.github.com> Date: Sat, 9 Dec 2023 19:09:54 +0900 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 00fbc9f..d0a789c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,6 +4,8 @@ on: push: branches: - master + schedule: + - cron: "*/180 * * * *" jobs: deploy: @@ -42,4 +44,4 @@ jobs: docker pull jeongseho1/heatpick-notification docker stop heatpick-notification-container || true docker rm heatpick-notification-container || true - docker run -e SSH_HOST=${{ secrets.SSH_HOST }} -e SSH_PORT=${{ secrets.SSH_PORT }} -e SSH_USER=${{ secrets.SSH_USER }} -e SSH_PASSWORD=${{ secrets.SSH_PASSWORD }} -e DB_HOST=${{ secrets.DB_HOST }} -e DB_USER_NAME=${{ secrets.DB_USER_NAME }} -e DB_USER_PASSWORD=${{ secrets.DB_USER_PASSWORD }} -e DB_NAME=${{ secrets.DB_NAME }} -e SA_TYPE=${{ secrets.SA_TYPE }} -e SA_PROJECT_ID=${{ secrets.SA_PROJECT_ID }} -e SA_PRIVATE_KEY_ID=${{ secrets.SA_PRIVATE_KEY_ID }} -e SA_CLIENT_EMAIL=${{ secrets.SA_CLIENT_EMAIL }} -e SA_CLIENT_ID=${{ secrets.SA_CLIENT_ID }} -e SA_AUTH_URI=${{ secrets.SA_AUTH_URI }} -e SA_TOKEN_URI=${{ secrets.SA_TOKEN_URI }} -e SA_AUTH_PROVIDER_CERT_URL=${{ secrets.SA_AUTH_PROVIDER_CERT_URL }} -e SA_CLIENT_CERT_URL=${{ secrets.SA_CLIENT_CERT_URL }} -e SA_UNIVERSE_DOMAIN=${{ secrets.SA_UNIVERSE_DOMAIN }} -d -p 3000:3000 --name heatpick-notification-container jeongseho1/heatpick-notification \ No newline at end of file + docker run -e SSH_HOST=${{ secrets.SSH_HOST }} -e SSH_PORT=${{ secrets.SSH_PORT }} -e SSH_USER=${{ secrets.SSH_USER }} -e SSH_PASSWORD=${{ secrets.SSH_PASSWORD }} -e DB_HOST=${{ secrets.DB_HOST }} -e DB_USER_NAME=${{ secrets.DB_USER_NAME }} -e DB_USER_PASSWORD=${{ secrets.DB_USER_PASSWORD }} -e DB_NAME=${{ secrets.DB_NAME }} -e SA_TYPE=${{ secrets.SA_TYPE }} -e SA_PROJECT_ID=${{ secrets.SA_PROJECT_ID }} -e SA_PRIVATE_KEY_ID=${{ secrets.SA_PRIVATE_KEY_ID }} -e SA_CLIENT_EMAIL=${{ secrets.SA_CLIENT_EMAIL }} -e SA_CLIENT_ID=${{ secrets.SA_CLIENT_ID }} -e SA_AUTH_URI=${{ secrets.SA_AUTH_URI }} -e SA_TOKEN_URI=${{ secrets.SA_TOKEN_URI }} -e SA_AUTH_PROVIDER_CERT_URL=${{ secrets.SA_AUTH_PROVIDER_CERT_URL }} -e SA_CLIENT_CERT_URL=${{ secrets.SA_CLIENT_CERT_URL }} -e SA_UNIVERSE_DOMAIN=${{ secrets.SA_UNIVERSE_DOMAIN }} -d -p 3000:3000 --name heatpick-notification-container jeongseho1/heatpick-notification