Some checks failed
Build and publish the docker images / build (push) Has been cancelled
Signed-off-by: ngn <ngn@ngn.tf>
34 lines
953 B
YAML
34 lines
953 B
YAML
name: Build and publish the docker images
|
|
|
|
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 images
|
|
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
|