Skip to content

Commit

Permalink
[IDLE-000] production cd 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
wonjunYou committed Nov 11, 2024
1 parent 9694668 commit 76cbd35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/prod-server-deployer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ jobs:
key: ${{ secrets.INSTANCE_PEM_KEY }}
script: |
sudo docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
sudo docker pull public.ecr.aws/f5q3r6m5/idle-prod-ecr:$IMAGE_TAG
sudo docker pull public.ecr.aws/f5q3r6m5/idle-prod-ecr:latest
if [ $(sudo docker ps -q -f name=caremeet_server_prod) ]; then
sudo docker stop caremeet_server_prod
sudo docker rm caremeet_server_prod
fi
sudo docker run --name caremeet_server_prod --env-file ./app/docker/.env \
-e SPRING_PROFILES_ACTIVE=prod \
-d -p 8080:8080 public.ecr.aws/f5q3r6m5/idle-prod-ecr:$IMAGE_TAG
-d -p 8080:8080 public.ecr.aws/f5q3r6m5/idle-prod-ecr:latest
- name: Remove GitHub Actions IP
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CrawlingJobScheduler(
private val crawlingJobConfig: CrawlingJobConfig,
) {

@Scheduled(cron = "0 05 14 * * *")
@Scheduled(cron = "0 15 14 * * *")
fun scheduleJob() {
val jobParameters: JobParameters = JobParametersBuilder()
.addLong("timestamp", System.currentTimeMillis())
Expand Down

0 comments on commit 76cbd35

Please sign in to comment.