Skip to content

Commit

Permalink
fix: registry expiry time
Browse files Browse the repository at this point in the history
  • Loading branch information
octadion committed Feb 29, 2024
1 parent 4b772fd commit 4f33049
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}

- name: Log in to DigitalOcean Container Registry with short-lived credentials
run: doctl registry login --expiry-seconds 4800
run: doctl registry login --expiry-seconds 10800

- name: Remove all old images
run: if [ ! -z "$(doctl registry repository list | grep "$(echo $IMAGE_NAME)")" ]; then doctl registry repository delete-manifest $(echo $IMAGE_NAME) $(doctl registry repository list-tags $(echo $IMAGE_NAME) | grep -o "sha.*") --force; else echo "No repository"; fi
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def run_schedule():

if __name__ == "__main__":

schedule.every().day.at("00:00").do(job)
schedule.every().day.at("14:00").do(job)
schedule_thread = threading.Thread(target=run_schedule)
schedule_thread.start()
app.run(host='0.0.0.0', port='8001')

0 comments on commit 4f33049

Please sign in to comment.