From 4e47e34f0c27039c42f51eee7b5643cc72b47e82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Je=C5=BEek?= Date: Thu, 17 Oct 2024 10:20:26 +0200 Subject: [PATCH] ci(publish): build and publish image to dockerhub on release MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Radek Ježek --- .github/workflows/publish-release-image.yml | 29 +++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/publish-release-image.yml diff --git a/.github/workflows/publish-release-image.yml b/.github/workflows/publish-release-image.yml new file mode 100644 index 0000000..0e18dfb --- /dev/null +++ b/.github/workflows/publish-release-image.yml @@ -0,0 +1,29 @@ +name: build and publish release image + +on: + # On release events (also when a published release is converted from/to prerelease), push all patterns + release: + types: [released, prereleased] + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + platforms: linux/amd64,linux/arm64 + push: true + tags: iambeeagent/bee-api:${{ github.event.release.tag_name }}