Skip to content

Commit 4507d6c

Browse files
committed
ci: separate panel and wings workflows
1 parent 169b2d2 commit 4507d6c

File tree

3 files changed

+34
-13
lines changed

3 files changed

+34
-13
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
name: Build and publish docker images
1+
name: Panel
2+
23
on:
34
push:
45
branches:
56
- 'master'
67

78
jobs:
8-
images:
9-
name: Build and push base image
9+
build-and-push:
10+
name: Build and Push
1011
runs-on: ubuntu-latest
1112
steps:
1213
- uses: actions/checkout@v2
@@ -18,18 +19,10 @@ jobs:
1819
username: ${{ github.repository_owner }}
1920
password: ${{ secrets.REGISTRY_TOKEN }}
2021

21-
- name: build Panel image
22+
- name: Build and Push image
2223
uses: docker/build-push-action@v2
2324
with:
2425
push: true
2526
platforms: linux/amd64,linux/arm64
2627
context: build/panel
2728
tags: ghcr.io/pterodactyl/development/panel:latest
28-
29-
- name: build Wings image
30-
uses: docker/build-push-action@v2
31-
with:
32-
push: true
33-
platforms: linux/amd64,linux/arm64
34-
context: build/wings
35-
tags: ghcr.io/pterodactyl/development/wings:latest

.github/workflows/wings.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Wings
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
8+
jobs:
9+
build-and-push:
10+
name: Build and Push
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: docker/setup-qemu-action@v1
15+
- uses: docker/setup-buildx-action@v1
16+
- uses: docker/login-action@v1
17+
with:
18+
registry: ghcr.io
19+
username: ${{ github.repository_owner }}
20+
password: ${{ secrets.REGISTRY_TOKEN }}
21+
22+
- name: Build and Push image
23+
uses: docker/build-push-action@v2
24+
with:
25+
push: true
26+
platforms: linux/amd64,linux/arm64
27+
context: build/wings
28+
tags: ghcr.io/pterodactyl/development/wings:latest

build/wings/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ RUN apt -y update \
3131
&& tar xvf "go1.18.7.linux-$(dpkg --print-architecture).tar.gz" -C /usr/local \
3232
&& chown -R root:root /usr/local/go \
3333
&& rm -rf go*.gz \
34-
&& /usr/local/go/bin/go get github.com/go-delve/delve/cmd/dlv \
34+
&& /usr/local/go/bin/go install github.com/go-delve/delve/cmd/dlv@latest \
3535
&& usermod -aG docker root \
3636
&& echo "export PATH=\$PATH:/usr/local/go/bin" >> /etc/bash.bashrc
3737

0 commit comments

Comments
 (0)