From eb8aaaa43544da9a4e27baf02dda08f6ccb3892e Mon Sep 17 00:00:00 2001 From: Daniel Dolezal Date: Thu, 6 Jul 2023 20:17:56 +0200 Subject: [PATCH] add github action to update docker container automaticly --- .github/workflows/docker-image.yml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..a4dfacb --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,31 @@ +name: Build and Push Docker Container +on: + schedule: + - cron: "30 18 * * 4" + +jobs: + build-and-push: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + with: + driver-opts: networks=host + + - name: Login to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v2 + with: + context: . + push: true + tags: daniel156161/borgbackup-ssh:archlinux + platforms: linux/amd64 # Ersetze dies durch die gewünschten Plattformen