mirror of
https://github.com/TheAnachronism/docspell.git
synced 2024-11-13 02:31:10 +00:00
26 lines
854 B
YAML
26 lines
854 B
YAML
name: Publish Docker Images
|
|
on:
|
|
release:
|
|
types: [ published ]
|
|
jobs:
|
|
docker-images:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4.1.7
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Set current version
|
|
run: echo "DOCSPELL_VERSION=$(cat version.sbt | grep version | cut -d= -f2 | xargs)" >> $GITHUB_ENV
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
- name: Set up Docker Buildx
|
|
id: buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
- name: Log in to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
- name: Build and push Docker Images (${{ env.DOCSPELL_VERSION }})
|
|
run: ./docker/dockerfiles/build.sh ${{ env.DOCSPELL_VERSION }} --push
|