mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Docker buildx setup for multiple architectures
This commit is contained in:
13
.github/workflows/docker-image.yml
vendored
13
.github/workflows/docker-image.yml
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user