nitter/.gitea/workflows/build-web.yml
ngn f1078aa647
Some checks failed
Build the docker image for the get_account.py script / build (push) Has been cancelled
Build the docker image for the web server / build (push) Has been cancelled
separate the workflows for the docker images
Signed-off-by: ngn <ngn@ngn.tf>
2025-03-24 23:34:12 +03:00

29 lines
739 B
YAML

name: Build the docker image for the web server
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 and push the image
run: |
docker build . -f docker/nitter/Dockerfile --tag ${{env.REGISTRY}}/${{env.IMAGE}}:latest
docker push ${{env.REGISTRY}}/${{env.IMAGE}}:latest