mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-13 16:40:01 +00:00
20c9bf47da
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
name: Build and Push Docker Image (fix/*)
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'fix/*'
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
packages: write
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Set up JDK 21
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '21'
|
|
|
|
- name: Run production build
|
|
env:
|
|
GAMEYFIN_KEYSTORE_PASSWORD: ${{ secrets.GAMEYFIN_KEYSTORE_PASSWORD }}
|
|
run: ./gradlew clean build -Pvaadin.productionMode=true
|
|
|
|
- name: Extract tag from branch name
|
|
id: extract_tag
|
|
run: |
|
|
BRANCH_NAME="${GITHUB_REF#refs/heads/}"
|
|
TAG="${BRANCH_NAME#fix/}"
|
|
echo "tag=$TAG" >> $GITHUB_OUTPUT
|
|
|
|
- name: Build and push Docker image
|
|
uses: ./.github/actions/docker-build-push
|
|
with:
|
|
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
ghcr_username: ${{ github.actor }}
|
|
ghcr_token: ${{ secrets.GITHUB_TOKEN }}
|
|
context: .
|
|
dockerfile: docker/Dockerfile
|
|
platforms: linux/arm64/v8,linux/amd64
|
|
tags: grimsi/gameyfin:${{ steps.extract_tag.outputs.tag }},ghcr.io/gameyfin/gameyfin:${{ steps.extract_tag.outputs.tag }}
|