-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (49 loc) · 1.62 KB
/
disbot-builder.yml
File metadata and controls
53 lines (49 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build DisBot Docker Image (DisBot)
on:
workflow_dispatch:
push:
tags:
- v.*
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
jobs:
build:
name: " Build DisBot Docker Image (DisBot)"
if: "!contains(github.ref, '-dev')"
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@v1.3.1
with:
path: .
- uses: docker/setup-qemu-action@v3
- name: install libs
# pkg-config
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
- uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v5
with:
context: .
file: docker/DisBotDockerfile
platforms: linux/amd64
push: true
tags: |
ghcr.io/disbotdevelopment/disbot-bot:${{ steps.package-version.outputs.current-version}}
ghcr.io/disbotdevelopment/disbot-bot:latest