nitter/.gitea/workflows/build-get-account.yml
ngn de8f69b182
Some checks failed
Build the docker image for the web server / build (push) Waiting to run
Build the docker image for the get_account.py script / build (push) Has been cancelled
fix the image names for the docker workflows
Signed-off-by: ngn <ngn@ngn.tf>
2025-03-24 23:36:28 +03:00

29 lines
762 B
YAML

name: Build the docker image for the get_account.py script
on:
push:
branches: ["custom"]
env:
REGISTRY: git.ngn.tf
IMAGE: ${{gitea.repository}}/get-account
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