Some checks failed
ups / ups (push) Failing after 19s
Signed-off-by: ngn <ngn@ngn.tf>
35 lines
749 B
YAML
35 lines
749 B
YAML
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
|