nitter/.gitea/workflows/build.yml
ngn 1ed15ef433
Some checks failed
Build and publish the docker images / build (push) Has been cancelled
add the get_account.py script from upstream
Signed-off-by: ngn <ngn@ngn.tf>
2025-03-24 23:26:17 +03:00

34 lines
953 B
YAML

name: Build and publish the docker images
on:
push:
branches: ["custom"]
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 images
run: |
docker build . -f docker/nitter/Dockerfile --tag ${{env.REGISTRY}}/${{env.IMAGE}}:latest
docker build . -f docker/get_account/Dockerfile --tag ${{env.REGISTRY}}/${{env.IMAGE}}-get-account:latest
- name: Push images
run: |
docker push ${{env.REGISTRY}}/${{env.IMAGE}}:latest
docker push ${{env.REGISTRY}}/${{env.IMAGE}}-get-account:latest