Skip to content

Commit

Permalink
Automate the deployment process by introducing a deployment pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Intina47 committed Mar 24, 2024
1 parent e1add34 commit b02866e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/docker-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build and Push Docker image

on:
push:
branches:
- main # Set to your default branch

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v2

- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build and Push Docker Image
uses: docker/build-push-action@v2
with:
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKER_IMAGE }}:latest
2 changes: 1 addition & 1 deletion bot_components/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def on_guild_join(self, guild):
except Exception as e:
print(f"Failed to send message to admin: {str(e)}")

@tasks.loop(hours=3)
@tasks.loop(seconds=60)
async def scrape_and_post(self):
print('Entered scrape_and_post loop') # Add this line
for guild in self.guilds:
Expand Down

0 comments on commit b02866e

Please sign in to comment.