mirror of
https://github.com/pyrohost/pyrodactyl.git
synced 2026-04-06 04:01:58 +02:00
Merge branch 'main' into releases/v4.0.0
This commit is contained in:
12
.github/workflows/prod-build.yaml
vendored
12
.github/workflows/prod-build.yaml
vendored
@@ -3,8 +3,6 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- 'releases/*'
|
||||
tags:
|
||||
- 'releases/*'
|
||||
|
||||
permissions:
|
||||
packages: write
|
||||
@@ -18,6 +16,14 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Extract version from branch name
|
||||
id: extract_version
|
||||
run: |
|
||||
# Extract version from branch name (e.g., releases/v4.0.0 -> v4.0.0)
|
||||
BRANCH_NAME=${GITHUB_REF#refs/heads/}
|
||||
VERSION=${BRANCH_NAME#releases/}
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Login to GHCR
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
@@ -34,7 +40,7 @@ jobs:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }}
|
||||
ghcr.io/${{ github.repository }}:${{ steps.extract_version.outputs.version }}
|
||||
ghcr.io/${{ github.repository }}:latest
|
||||
platforms: linux/amd64,linux/arm64
|
||||
cache-from: type=gha
|
||||
|
||||
Reference in New Issue
Block a user