add ups workflow and config
Some checks failed
docker / docker (push) Failing after 1m43s

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn
2025-05-12 23:08:30 +03:00
parent 02e9936059
commit f71f0e9ab7
4 changed files with 47 additions and 11 deletions

View File

@ -0,0 +1,34 @@
name: docker
on:
push:
branches:
- "main"
paths-ignore:
- "README.md"
- "LICENSE.txt"
- "docker-compose.example.yml"
- "ups.json"
env:
REGISTRY: git.ngn.tf
IMAGE: ${{gitea.repository}}
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to container repo
uses: docker/login-action@v1
with:
registry: ${{env.REGISTRY}}
username: ${{gitea.actor}}
password: ${{secrets.PACKAGES_TOKEN}}
- name: Build docker image
run: |
docker build . --tag ${{env.REGISTRY}}/${{env.IMAGE}}:latest
docker push ${{env.REGISTRY}}/${{env.IMAGE}}:latest