mirror of
https://github.com/pyrohost/pyrodactyl.git
synced 2026-04-06 04:01:58 +02:00
fix: i really hate github actions
This commit is contained in:
10
.github/workflows/prod-build.yaml
vendored
10
.github/workflows/prod-build.yaml
vendored
@@ -1,4 +1,4 @@
|
||||
name: Build and Push release docker image
|
||||
name: Build & Push Version
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@@ -16,6 +16,14 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Extract version from branch name
|
||||
id: extract_version
|
||||
run: |
|
||||
BRANCH_NAME="${{ github.ref_name }}"
|
||||
VERSION="${BRANCH_NAME#releases/v}"
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
echo "Extracted version: $VERSION"
|
||||
|
||||
- name: Login to GHCR
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
|
||||
7
.github/workflows/release.yaml
vendored
7
.github/workflows/release.yaml
vendored
@@ -65,10 +65,3 @@ jobs:
|
||||
draft: false
|
||||
prerelease: ${{ inputs.release_type == 'prerelease' }}
|
||||
files: panel.tar.gz
|
||||
|
||||
build-docker:
|
||||
name: Build and Push release docker image
|
||||
needs: create-release
|
||||
uses: ./.github/workflows/prod-build.yaml
|
||||
permissions:
|
||||
packages: write
|
||||
|
||||
Reference in New Issue
Block a user