mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 08:41:39 +01:00
Add automatic docker building
This commit is contained in:
26
.gitea/workflows/docker.yml
Normal file
26
.gitea/workflows/docker.yml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
name: Build and Publish 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: git.qwerinope.com
|
||||||
|
username: qwerinope
|
||||||
|
password: ${{ secrets.PAT }}
|
||||||
|
- 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: git.qwerinope.com/dogbot:latest
|
||||||
Reference in New Issue
Block a user