Docker buildx setup for multiple architectures

This commit is contained in:
eikek
2021-06-08 01:58:05 +02:00
parent ecc1e44e29
commit 76e47310ce
5 changed files with 50 additions and 49 deletions

View File

@ -11,12 +11,17 @@ jobs:
fetch-depth: 0
- name: Set current version
run: echo "DOCSPELL_VERSION=$(cat version.sbt | grep version | cut -d= -f2 | xargs)" >> $GITHUB_ENV
- name: Build Docker Images (${{ env.DOCSPELL_VERSION }})
run: ./docker/dockerfiles/build.sh ${{ env.DOCSPELL_VERSION }}
# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Publish Images (${{ env.DOCSPELL_VERSION }})
run: ./docker/dockerfiles/push.sh ${{ env.DOCSPELL_VERSION }}
- name: Build and push Docker Images (${{ env.DOCSPELL_VERSION }})
run: ./docker/dockerfiles/build.sh ${{ env.DOCSPELL_VERSION }} --push