mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 01:01:39 +01:00
add github build/publish scripts for eventual github release
This commit is contained in:
27
.github/workflows/docker-dogbot.yml
vendored
Normal file
27
.github/workflows/docker-dogbot.yml
vendored
Normal 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
27
.github/workflows/docker-pocketbase.yml
vendored
Normal 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 }}"
|
||||
Reference in New Issue
Block a user