From 2e22cbc8daf63e26610618bc807a8d8910fab60c Mon Sep 17 00:00:00 2001 From: "intermittent.energy" Date: Mon, 16 Oct 2023 20:04:24 +0200 Subject: [PATCH] Build docker and push to ghcr.io from pipeline --- .github/workflows/docker.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/docker.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000..83d10d0 --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,26 @@ +name: docker +jobs: + docker: + - name: build docker + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: true + tags: | + ghcr.io/${{ github.repository_owner }}/grafanimate:latest