separate the workflows for the docker images
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

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn 2025-03-24 23:34:12 +03:00
parent 1ed15ef433
commit f1078aa647
Signed by: ngn
GPG Key ID: A3654DF5AD9F641D
3 changed files with 32 additions and 8 deletions

View File

@ -1,4 +1,4 @@
name: Build and publish the docker images name: Build the docker image for the get_account.py script
on: on:
push: push:
@ -22,12 +22,7 @@ jobs:
username: ${{gitea.actor}} username: ${{gitea.actor}}
password: ${{secrets.PACKAGES_TOKEN}} password: ${{secrets.PACKAGES_TOKEN}}
- name: Build images - name: Build and push the image
run: | 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 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 docker push ${{env.REGISTRY}}/${{env.IMAGE}}-get-account:latest

View File

@ -0,0 +1,28 @@
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

View File

@ -1,5 +1,6 @@
# [ngn.tf] | nitter # [ngn.tf] | nitter
![](https://git.ngn.tf/ngn/nitter/actions/workflows/build.yml/badge.svg) ![](https://git.ngn.tf/ngn/nitter/actions/workflows/build-web.yml/badge.svg)
![](https://git.ngn.tf/ngn/nitter/actions/workflows/build-get-account.yml/badge.svg)
A fork of the [nitter](https://github.com/PrivacyDevel/nitter) project, with my personal changes. A fork of the [nitter](https://github.com/PrivacyDevel/nitter) project, with my personal changes.