Skip to content

Commit 366780f

Browse files
author
xyzjesper
committed
Add new Workflows and trigger buildDev
1 parent 765375d commit 366780f

File tree

5 files changed

+113
-72
lines changed

5 files changed

+113
-72
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Build DisBot Dev Image (DisBot)
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- buildDev
8+
env:
9+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
10+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
11+
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
12+
jobs:
13+
push:
14+
name: "DisBot Builder"
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
18+
packages: write
19+
id-token: write
20+
strategy:
21+
fail-fast: false
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: get-npm-version
26+
id: package-version
27+
uses: martinbeentjes/npm-get-version-action@v1.3.1
28+
with:
29+
path: .
30+
- uses: docker/setup-qemu-action@v3
31+
32+
- name: install libs
33+
# pkg-config
34+
run: sudo apt-get update -y && sudo add-apt-repository ppa:deadsnakes/ppa -y && sudo apt update && sudo apt install python3.13 -y && sudo apt install pkgconf build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev -y && python3 --version
35+
- uses: docker/setup-buildx-action@v3
36+
with:
37+
buildkitd-flags: --debug
38+
39+
- uses: docker/login-action@v3
40+
with:
41+
registry: ghcr.io
42+
username: ${{ github.actor }}
43+
password: ${{ secrets.GITHUB_TOKEN }}
44+
45+
- uses: docker/build-push-action@v5
46+
with:
47+
context: .
48+
file: docker/DisBotDockerfile
49+
platforms: linux/amd64
50+
push: true
51+
tags: |
52+
ghcr.io/disbotdevelopment/disbot-bot:${{ steps.package-version.outputs.current-version}}-${{ github.ref_name }}-dev
53+
ghcr.io/disbotdevelopment/disbot-bot:latest-dev
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Build DisBot Dev Image (EntryPoint)
2+
3+
on:
4+
# Allows you to run this workflow manually from the Actions tab
5+
workflow_dispatch:
6+
push:
7+
tags:
8+
- buildDev
9+
env:
10+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
11+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
12+
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
13+
jobs:
14+
push:
15+
name: "DisBot Builder"
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
19+
packages: write
20+
id-token: write
21+
strategy:
22+
fail-fast: false
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: get-npm-version
27+
id: package-version
28+
uses: martinbeentjes/npm-get-version-action@v1.3.1
29+
with:
30+
path: .
31+
- uses: docker/setup-qemu-action@v3
32+
33+
- name: install libs
34+
# pkg-config
35+
run: sudo apt-get update -y && sudo add-apt-repository ppa:deadsnakes/ppa -y && sudo apt update && sudo apt install python3.13 -y && sudo apt install pkgconf build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev -y && python3 --version
36+
- uses: docker/setup-buildx-action@v3
37+
with:
38+
buildkitd-flags: --debug
39+
40+
- uses: docker/login-action@v3
41+
with:
42+
registry: ghcr.io
43+
username: ${{ github.actor }}
44+
password: ${{ secrets.GITHUB_TOKEN }}
45+
46+
- uses: docker/build-push-action@v5
47+
with:
48+
context: .
49+
file: docker/DisBotDockerfileWithEntry
50+
platforms: linux/amd64
51+
push: true
52+
tags: |
53+
ghcr.io/disbotdevelopment/disbot-bot:${{ steps.package-version.outputs.current-version}}-with-entry-${{ github.ref_name }}-dev
54+
ghcr.io/disbotdevelopment/disbot-bot:latest-with-entry-dev

.github/workflows/disbot-builder-entry.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
#
2-
# Copyright (c) https://github.com/gOOvER/own-pterodactyl-images/blob/main/LICENSE
3-
#
4-
5-
name: DisBot Docker Builder (EntryPoint)
1+
name: Build DisBot Docker Image (EntryPoint)
62

73
on:
84
# Allows you to run this workflow manually from the Actions tab
95
workflow_dispatch:
10-
schedule:
11-
- cron: "0 0 * * 1"
126
push:
137
branches:
148
- main
9+
tags:
10+
- release
1511
env:
1612
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
1713
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

.github/workflows/disbot-builder.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
1-
#
2-
# Copyright (c) https://github.com/gOOvER/own-pterodactyl-images/blob/main/LICENSE
3-
#
4-
5-
name: DisBot Docker Builder (DisBot)
1+
name: Build DisBot Docker Image (DisBot)
62

73
on:
8-
# Allows you to run this workflow manually from the Actions tab
94
workflow_dispatch:
10-
schedule:
11-
- cron: "0 0 * * 1"
125
push:
136
branches:
147
- main
8+
tags:
9+
- release
1510
env:
1611
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
1712
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

.github/workflows/docs.yml

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)