ci: added default Docker Build Push file

This commit is contained in:
Leonard Excoffier
2024-09-28 18:31:16 -04:00
parent 0d71fb376c
commit 71dbefee17

27
.gitea/workflows/dbp.yaml Normal file
View File

@@ -0,0 +1,27 @@
name: Docker Build and Push
on:
# push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@main
- name: Login to Gitea Container Registry
uses: docker/login-action@master
with:
registry: git.jisoonet.com
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@master
with:
context: .
push: true
tags: git.jisoonet.com/${{ gitea.repository }}:latest