diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build-get-account.yml similarity index 71% rename from .gitea/workflows/build.yml rename to .gitea/workflows/build-get-account.yml index 43dc0f0..fca23cd 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build-get-account.yml @@ -1,4 +1,4 @@ -name: Build and publish the docker images +name: Build the docker image for the get_account.py script on: push: @@ -22,12 +22,7 @@ jobs: username: ${{gitea.actor}} password: ${{secrets.PACKAGES_TOKEN}} - - name: Build images + - name: Build and push the image 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 diff --git a/.gitea/workflows/build-web.yml b/.gitea/workflows/build-web.yml new file mode 100644 index 0000000..e898470 --- /dev/null +++ b/.gitea/workflows/build-web.yml @@ -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 diff --git a/README.md b/README.md index a265267..6a8c382 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # [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.