add github build/publish scripts for eventual github release

This commit is contained in:
2025-03-31 10:51:56 +02:00
parent a5acdedc12
commit 9d79f75767
2 changed files with 54 additions and 0 deletions

27
.github/workflows/docker-dogbot.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: Build and Publish dogbot docker image
on:
push:
branches:
- 'main'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Login to container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get repository
uses: actions/checkout@v4
- name: Docker Build and push
uses: docker/build-push-action@v6
with:
file: Dockerfile.dogbot
context: .
push: true
tags: ghcr.io/qweri0p/dogbot-bot:latest
secrets: "github_token=${{ secrets.GITHUB_TOKEN }}"

27
.github/workflows/docker-pocketbase.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: Build and Publish pocketbase docker image
on:
push:
branches:
- 'main'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Login to container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get repository
uses: actions/checkout@v4
- name: Docker Build and push
uses: docker/build-push-action@v6
with:
file: Dockerfile.pocketbase
context: .
push: true
tags: ghcr.io/qweri0p/dogbot-pocketbase:latest
secrets: "github_token=${{ secrets.GITHUB_TOKEN }}"