ngn a04cfc2fc3
All checks were successful
build / build (push) Successful in 58s
update the docker workflow
Signed-off-by: ngn <ngn@ngn.tf>
2025-05-02 17:47:45 +03:00

36 lines
804 B
YAML

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