mirror of
https://github.com/pyrohost/pyrodactyl.git
synced 2026-04-06 04:01:58 +02:00
ci: test new build setp
This commit is contained in:
13
.github/workflows/prod-build.yaml
vendored
13
.github/workflows/prod-build.yaml
vendored
@@ -1,12 +1,9 @@
|
||||
name: Build & Push Version (reusable)
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
tag:
|
||||
description: 'Tag to build (e.g. v1.0.0)'
|
||||
required: true
|
||||
type: string
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
permissions:
|
||||
packages: write
|
||||
@@ -18,7 +15,7 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: refs/tags/${{ inputs.tag }}
|
||||
ref: ${{ github.ref }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Login to GHCR
|
||||
@@ -41,7 +38,7 @@ jobs:
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository }}:${{ inputs.tag }}
|
||||
ghcr.io/${{ github.repository }}:${{ github.ref_name }}
|
||||
ghcr.io/${{ github.repository }}:latest
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
6
.github/workflows/release.yaml
vendored
6
.github/workflows/release.yaml
vendored
@@ -28,9 +28,3 @@ jobs:
|
||||
version: ${{ inputs.version }}
|
||||
release_type: ${{ inputs.release_type }}
|
||||
|
||||
build:
|
||||
needs: release
|
||||
name: Build Production Docker Images
|
||||
uses: ./.github/workflows/prod-build.yaml
|
||||
with:
|
||||
tag: v${{ inputs.version }}
|
||||
|
||||
Reference in New Issue
Block a user