chore: workflow update
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user