diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml new file mode 100644 index 0000000..1a49e95 --- /dev/null +++ b/.github/workflows/build-docker-image.yml @@ -0,0 +1,27 @@ +name: Build and Push Docker Image + +on: + schedule: + - cron: '0 0 * * *' # Run every day at midnight + +jobs: + build-and-push: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v5 + with: + context: .github + file: Dockerfile + push: true + tags: Duckonaut/hyprland-arch:latest \ No newline at end of file