From fe65a3f5b905c9ac285c5f1bd86abf0a58c58436 Mon Sep 17 00:00:00 2001 From: yubrew Date: Thu, 18 Jul 2024 11:14:51 -0400 Subject: [PATCH 1/2] ignore venv --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 30f144b..db70d7c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /chain +venv/ \ No newline at end of file From 662494f7015f9fca35d16abef8d6dc82b6766065 Mon Sep 17 00:00:00 2001 From: yubrew Date: Thu, 18 Jul 2024 11:17:03 -0400 Subject: [PATCH 2/2] schedule daily image build and push --- .../workflows/daily-docker-image-schedule.yml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/daily-docker-image-schedule.yml diff --git a/.github/workflows/daily-docker-image-schedule.yml b/.github/workflows/daily-docker-image-schedule.yml new file mode 100644 index 0000000..a284115 --- /dev/null +++ b/.github/workflows/daily-docker-image-schedule.yml @@ -0,0 +1,29 @@ +name: Daily Build and Push Docker Image + +on: + schedule: + - cron: '0 0 * * *' # Run daily at midnight UTC + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and push Docker image + uses: docker/build-push-action@v4 + with: + context: . + platforms: linux/amd64 + push: true + tags: backenddevelopersltd/compute-horde-local-subtensor:v0-latest