Merge pull request #481 from swirlai/fix-DS-643 #252
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Build | |
# Build a multi-arch docker image for SWIRL | |
# comment to start build | |
on: | |
workflow_dispatch: | |
push: | |
# only trigger on branches, not on tags | |
branches: 'develop' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: login to docker hub | |
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin | |
- name: builder bootstrap | |
run: docker buildx create --name devBuilder --use --bootstrap | |
- name: Build the Docker image | |
run: docker buildx build -t swirlai/swirl-search:develop --platform linux/amd64,linux/arm64 --push . | |
- name: Update repo description | |
uses: peter-evans/[email protected] | |
with: | |
username: ${{ secrets.DOCKER_USERNAME_X }} | |
password: ${{ secrets.DOCKER_PASSWORD_X }} | |
repository: swirlai/swirl-search |