2021-05-30 22:08:30 +00:00
|
|
|
name: Publish Docker Images
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [ published ]
|
|
|
|
jobs:
|
|
|
|
docker-images:
|
2024-03-10 14:50:06 +00:00
|
|
|
runs-on: ubuntu-latest
|
2021-05-30 22:08:30 +00:00
|
|
|
steps:
|
2024-05-08 22:42:33 +00:00
|
|
|
- uses: actions/checkout@v4.1.5
|
2021-05-30 22:08:30 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Set current version
|
|
|
|
run: echo "DOCSPELL_VERSION=$(cat version.sbt | grep version | cut -d= -f2 | xargs)" >> $GITHUB_ENV
|
2021-06-07 23:58:05 +00:00
|
|
|
- name: Set up QEMU
|
2023-09-15 07:48:43 +00:00
|
|
|
uses: docker/setup-qemu-action@v3
|
2021-06-07 23:58:05 +00:00
|
|
|
- name: Set up Docker Buildx
|
|
|
|
id: buildx
|
2023-10-03 08:37:31 +00:00
|
|
|
uses: docker/setup-buildx-action@v3
|
2021-05-30 22:08:30 +00:00
|
|
|
- name: Log in to Docker Hub
|
2023-10-03 20:15:12 +00:00
|
|
|
uses: docker/login-action@v3
|
2021-05-30 22:08:30 +00:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
2021-06-07 23:58:05 +00:00
|
|
|
- name: Build and push Docker Images (${{ env.DOCSPELL_VERSION }})
|
|
|
|
run: ./docker/dockerfiles/build.sh ${{ env.DOCSPELL_VERSION }} --push
|