move to packwiz
This commit is contained in:
parent
7db0bb5c60
commit
e7cbdd0525
129 changed files with 2381 additions and 0 deletions
66
.forgejo/workflows/buildcontainer.yml
Normal file
66
.forgejo/workflows/buildcontainer.yml
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
name: Create Buildcontainer
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
paths:
|
||||
- .forgejo/workflows/buildcontainer.yml
|
||||
- Dockerfile
|
||||
pull_request:
|
||||
branches:
|
||||
- "main"
|
||||
paths:
|
||||
- .forgejo/workflows/buildcontainer.yml
|
||||
- Dockerfile
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: code.forgejo.org/oci/docker:dind
|
||||
env:
|
||||
DOCKER_HOST: tcp://forgejo-dind:2375
|
||||
|
||||
steps:
|
||||
- name: Setup Docker & Node
|
||||
run: |
|
||||
apk add nodejs npm --update
|
||||
docker info
|
||||
|
||||
- name: Checkout the repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build and Push
|
||||
run: |
|
||||
export TAG=codeberg.org/${{ env.GITHUB_REPOSITORY }}/alpine-packwiz
|
||||
docker build -f Dockerfile -t $TAG:${{ env.GITHUB_SHA }} build-docker
|
||||
|
||||
publish:
|
||||
if: github.event_name == 'push'
|
||||
runs-on: docker
|
||||
container:
|
||||
image: code.forgejo.org/oci/docker:dind
|
||||
env:
|
||||
DOCKER_HOST: tcp://forgejo-dind:2375
|
||||
|
||||
steps:
|
||||
- name: Setup Docker & Node
|
||||
run: |
|
||||
apk add nodejs npm --update
|
||||
docker info
|
||||
|
||||
- name: Login to Forgejo
|
||||
run: |
|
||||
docker login codeberg.org -u ${{ env.GITHUB_ACTOR }} -p ${{ secrets.TOKEN }}
|
||||
|
||||
- name: Checkout the repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build and Push
|
||||
run: |
|
||||
export TAG=codeberg.org/${{ env.GITHUB_REPOSITORY }}/alpine-packwiz
|
||||
docker build -f Dockerfile -t $TAG:${{ env.GITHUB_SHA }} build-docker
|
||||
docker tag $TAG:${{ env.GITHUB_SHA }} $TAG:latest
|
||||
docker push $TAG
|
||||
92
.forgejo/workflows/publish-release.yml
Normal file
92
.forgejo/workflows/publish-release.yml
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
name: Build Application
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
build-modrinth:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: codeberg.org/astreaprtcl/linuxcraft/alpine-packwiz:latest
|
||||
|
||||
steps:
|
||||
- name: Checkout the repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build Package
|
||||
run: |
|
||||
packwiz mr export
|
||||
|
||||
- name: Upload binary artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Linuxcraft-$GITHUB_REF_NAME.mrpack
|
||||
path: *.mrpack
|
||||
|
||||
build-curseforge:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: codeberg.org/astreaprtcl/linuxcraft/alpine-packwiz:latest
|
||||
|
||||
steps:
|
||||
- name: Checkout the repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build Package
|
||||
run: |
|
||||
packwiz cf export
|
||||
|
||||
- name: Upload binary artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Linuxcraft-$GITHUB_REF_NAME.zip
|
||||
path: *.zip
|
||||
|
||||
build-serverpack:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: codeberg.org/astreaprtcl/linuxcraft/alpine-packwiz:latest
|
||||
|
||||
steps:
|
||||
- name: Checkout the repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build Package
|
||||
run: |
|
||||
packwiz cf export
|
||||
|
||||
- name: Upload binary artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Linuxcraft-$GITHUB_REF_NAME-server.zip
|
||||
path: *.zip
|
||||
|
||||
publish-artifacts:
|
||||
runs-on: docker
|
||||
|
||||
steps:
|
||||
- name: Download Binaries
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
merge_multiple: true
|
||||
path: artifacts
|
||||
|
||||
- name: Prepare release
|
||||
run: |
|
||||
mkdir release
|
||||
mv artifacts/*/* release
|
||||
|
||||
- name: Upload binaries
|
||||
uses: actions/forgejo-release@v2.6.0
|
||||
with:
|
||||
direction: upload
|
||||
url: ${{ env.GITHUB_SERVER_URL }}
|
||||
repo: ${{ env.GITHUB_REPOSITORY }}
|
||||
token: ${{ secrets.TOKEN }}
|
||||
release-dir: release
|
||||
tag: "${{ github.ref_name }}"
|
||||
sha: "${{ github.sha }}"
|
||||
release-notes-assistant: true
|
||||
override: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue