mirror of
https://github.com/pterodactyl/development.git
synced 2025-12-12 00:07:30 -06:00
ci: separate panel and wings workflows
This commit is contained in:
parent
169b2d2eb8
commit
4507d6c742
@ -1,12 +1,13 @@
|
|||||||
name: Build and publish docker images
|
name: Panel
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
images:
|
build-and-push:
|
||||||
name: Build and push base image
|
name: Build and Push
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -18,18 +19,10 @@ jobs:
|
|||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: build Panel image
|
- name: Build and Push image
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
context: build/panel
|
context: build/panel
|
||||||
tags: ghcr.io/pterodactyl/development/panel:latest
|
tags: ghcr.io/pterodactyl/development/panel:latest
|
||||||
|
|
||||||
- name: build Wings image
|
|
||||||
uses: docker/build-push-action@v2
|
|
||||||
with:
|
|
||||||
push: true
|
|
||||||
platforms: linux/amd64,linux/arm64
|
|
||||||
context: build/wings
|
|
||||||
tags: ghcr.io/pterodactyl/development/wings:latest
|
|
||||||
28
.github/workflows/wings.yaml
vendored
Normal file
28
.github/workflows/wings.yaml
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
name: Wings
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-push:
|
||||||
|
name: Build and Push
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: docker/setup-qemu-action@v1
|
||||||
|
- uses: docker/setup-buildx-action@v1
|
||||||
|
- uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and Push image
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
context: build/wings
|
||||||
|
tags: ghcr.io/pterodactyl/development/wings:latest
|
||||||
@ -31,7 +31,7 @@ RUN apt -y update \
|
|||||||
&& tar xvf "go1.18.7.linux-$(dpkg --print-architecture).tar.gz" -C /usr/local \
|
&& tar xvf "go1.18.7.linux-$(dpkg --print-architecture).tar.gz" -C /usr/local \
|
||||||
&& chown -R root:root /usr/local/go \
|
&& chown -R root:root /usr/local/go \
|
||||||
&& rm -rf go*.gz \
|
&& rm -rf go*.gz \
|
||||||
&& /usr/local/go/bin/go get github.com/go-delve/delve/cmd/dlv \
|
&& /usr/local/go/bin/go install github.com/go-delve/delve/cmd/dlv@latest \
|
||||||
&& usermod -aG docker root \
|
&& usermod -aG docker root \
|
||||||
&& echo "export PATH=\$PATH:/usr/local/go/bin" >> /etc/bash.bashrc
|
&& echo "export PATH=\$PATH:/usr/local/go/bin" >> /etc/bash.bashrc
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user