From 5830329dc3027521f9bd9a34a4f9152e375651c6 Mon Sep 17 00:00:00 2001 From: sicheste Date: Mon, 28 Oct 2024 14:12:42 +0100 Subject: [PATCH] chore: add docker action (#350) --- .github/workflows/publish_docker.yml | 41 ++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/publish_docker.yml diff --git a/.github/workflows/publish_docker.yml b/.github/workflows/publish_docker.yml new file mode 100644 index 00000000..7c8ab724 --- /dev/null +++ b/.github/workflows/publish_docker.yml @@ -0,0 +1,41 @@ +name: Publish Docker image + +on: + push: + tags: + - "*" + +jobs: + docker: + name: Publish Docker + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Docker login + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USER }} + password: ${{ secrets.DOCKER_PASS }} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Docker meta + id: meta + uses: docker/metadata-action@v5 + with: + images: volkszaehler/mbmd + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + platforms: linux/amd64,linux/arm64,linux/arm/v6 + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }}