separate the workflows for the docker images
Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
parent
1ed15ef433
commit
f1078aa647
@ -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
|
28
.gitea/workflows/build-web.yml
Normal file
28
.gitea/workflows/build-web.yml
Normal 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
|
@ -1,5 +1,6 @@
|
|||||||
# [ngn.tf] | nitter
|
# [ngn.tf] | nitter
|
||||||
|
|
||||||

|

|
||||||
|

|
||||||
|
|
||||||
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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user