chore: workflow update

This commit is contained in:
fvjr156
2026-05-31 18:38:14 +08:00
parent e6172ebf4f
commit 59d1bdf828
+22
View File
@@ -0,0 +1,22 @@
name: Docker Image CI
on:
push:
branches:
- '**'
- '!feature/**'
- '!bugfix/**'
- '!hotfix/**'
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build and push to Local Registry
run: |
echo "${{ secrets.ACCESS_TOKEN }}" | docker login 127.0.0.1:3000 --username "${{ gitea.actor }}" --password-stdin
docker build . --tag 127.0.0.1:3000/${{ gitea.repository }}:latest
docker push 127.0.0.1:3000/${{ gitea.repository }}:latest