Files
PepApi.Core/.gitea/workflows/build-pepapi.yml
T
aj ee2d65fca9
Build PepApi image / build-and-push (push) Successful in 1m9s
fix: publish PepApi image to private registry namespace
2026-09-26 09:32:44 -04:00

29 lines
815 B
YAML

name: Build PepApi image
on:
push:
branches: [main]
paths:
- "PepApi.Core/**"
- "PepLib.Core/**"
- "Dockerfile"
- ".gitea/workflows/build-pepapi.yml"
workflow_dispatch: {}
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log in to Gitea container registry
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.thecozycat.net -u "${{ gitea.actor }}" --password-stdin
- name: Build image
run: docker build -t git.thecozycat.net/internal/pepapi:latest -t git.thecozycat.net/internal/pepapi:${{ gitea.sha }} .
- name: Push image
run: |
docker push git.thecozycat.net/internal/pepapi:latest
docker push git.thecozycat.net/internal/pepapi:${{ gitea.sha }}