From 4c0624de77e9ab20dab4a0f342336ce554c2d556 Mon Sep 17 00:00:00 2001 From: zjeffer <4633209+zjeffer@users.noreply.github.com> Date: Sat, 27 Apr 2024 15:00:05 +0200 Subject: [PATCH] add build-docker-image.yml --- .github/workflows/build-docker-image.yml | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/build-docker-image.yml 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