add docker image build and push
This commit is contained in:
parent
771700d6c8
commit
d1568f1b97
27
.gitea/workflows/release.yaml
Normal file
27
.gitea/workflows/release.yaml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
name: Docker Build and Push
|
||||||
|
run-name: ${{ gitea.actor }} is running Docker build and push
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- name: Login to local Gitea registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ${{ vars.REGISTRY }}
|
||||||
|
username: ${{ vars.ACTIONS_USER }}
|
||||||
|
password: ${{ secrets.PACKAGES_TOKEN }}
|
||||||
|
- name: Docker Build and push
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: ${{ vars.REGISTRY }}/${{ gitea.repository }}:latest
|
Loading…
x
Reference in New Issue
Block a user