mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-17 08:15:44 +00:00
Merge pull request #51 from grimsi/gh34_AddDockerBuildToCI
Add Docker release to CI
This commit is contained in:
@@ -61,3 +61,53 @@ jobs:
|
|||||||
LICENSE.md
|
LICENSE.md
|
||||||
backend/target/gameyfin-*.jar
|
backend/target/gameyfin-*.jar
|
||||||
config/gameyfin.properties
|
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
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
<connection>scm:git:https://github.com/grimsi/gameyfin.git</connection>
|
<connection>scm:git:https://github.com/grimsi/gameyfin.git</connection>
|
||||||
<url>scm:git:https://github.com/grimsi/gameyfin.git</url>
|
<url>scm:git:https://github.com/grimsi/gameyfin.git</url>
|
||||||
<developerConnection>scm:git:https://github.com/grimsi/gameyfin.git</developerConnection>
|
<developerConnection>scm:git:https://github.com/grimsi/gameyfin.git</developerConnection>
|
||||||
<tag>HEAD</tag>
|
<tag>v1.2.2</tag>
|
||||||
</scm>
|
</scm>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|||||||
Reference in New Issue
Block a user