ci: added default Docker Build Push file
This commit is contained in:
27
.gitea/workflows/dbp.yaml
Normal file
27
.gitea/workflows/dbp.yaml
Normal 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
|
||||
Reference in New Issue
Block a user