From c2501f84b8311bb5c97f760f098c496cb28ed90c Mon Sep 17 00:00:00 2001 From: phact Date: Fri, 28 Jun 2024 23:58:39 -0400 Subject: [PATCH] docker multi platform --- .github/workflows/docker.yml | 35 ++++++++++++++++++----------------- VERSION | 2 +- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 1d6b652..549e681 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -5,11 +5,17 @@ on: jobs: publish: runs-on: ubuntu-latest - name: docker build and publish + name: Docker build and publish steps: - name: Git checkout uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Log in to Docker Hub uses: docker/login-action@v1 with: @@ -20,19 +26,14 @@ jobs: id: version run: echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV - - name: Build Docker image - run: | - docker build . -t datastax/astra-assistants:${{ env.VERSION }} - - - name: Tag Docker image as latest - run: | - docker tag datastax/astra-assistants:${{ env.VERSION }} datastax/astra-assistants:latest - - - name: Push Docker image with version tag - run: | - docker push datastax/astra-assistants:${{ env.VERSION }} - - - name: Push Docker image with latest tag - run: | - docker push datastax/astra-assistants:latest - + - name: Build and push multi-platform Docker images + id: docker_build + uses: docker/build-push-action@v2 + with: + context: . + file: ./Dockerfile + platforms: linux/amd64,linux/arm64 + push: true + tags: | + datastax/astra-assistants:${{ env.VERSION }} + datastax/astra-assistants:latest diff --git a/VERSION b/VERSION index 1fbed66..fd8518c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v0.2.12 +v0.2.13