Skip to content

Commit

Permalink
docker multi platform
Browse files Browse the repository at this point in the history
  • Loading branch information
phact committed Jun 29, 2024
1 parent 7d9b584 commit c2501f8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
35 changes: 18 additions & 17 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.2.12
v0.2.13

0 comments on commit c2501f8

Please sign in to comment.