diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 442acd8..99d9ef3 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -61,3 +61,53 @@ jobs:
LICENSE.md
backend/target/gameyfin-*.jar
config/gameyfin.properties
+
+ - name: Docker meta
+ id: meta
+ uses: docker/metadata-action@v4
+ with:
+ images: |
+ grimsi/gameyfin
+ tags: |
+ type=semver,pattern={{version}},value=${{ github.event.inputs.releaseVersion }}
+ type=semver,pattern={{major}}.{{minor}},value=${{ github.event.inputs.releaseVersion }}
+ type=semver,pattern={{major}},value=${{ github.event.inputs.releaseVersion }}
+
+ - name: Set up QEMU
+ uses: docker/setup-qemu-action@v2
+
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v2
+
+ - name: Cache Docker layers
+ uses: actions/cache@v3
+ with:
+ path: /tmp/.buildx-cache
+ key: ${{ runner.os }}-buildx-${{ github.sha }}
+ restore-keys: |
+ ${{ runner.os }}-buildx-
+
+ - name: Login to Docker Hub
+ uses: docker/login-action@v2
+ with:
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
+
+ - name: Build and push
+ uses: docker/build-push-action@v3
+ with:
+ context: .
+ file: ./docker/Dockerfile
+ push: true
+ tags: ${{ steps.meta.outputs.tags }}
+ labels: ${{ steps.meta.outputs.labels }}
+ cache-from: type=local,src=/tmp/.buildx-cache
+ cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
+
+ - # Temp fix
+ # https://github.com/docker/build-push-action/issues/252
+ # https://github.com/moby/buildkit/issues/1896
+ name: Move Docker cache (temp fix)
+ run: |
+ rm -rf /tmp/.buildx-cache
+ mv /tmp/.buildx-cache-new /tmp/.buildx-cache
diff --git a/pom.xml b/pom.xml
index 9bf1b4d..8eced1d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -26,7 +26,7 @@
scm:git:https://github.com/grimsi/gameyfin.git
scm:git:https://github.com/grimsi/gameyfin.git
scm:git:https://github.com/grimsi/gameyfin.git
- HEAD
+ v1.2.2