Nareshkumar Rao 67cc24a9d9
All checks were successful
Build / build (push) Successful in 13s
add watchtower webhook
2025-04-02 22:45:31 +02:00

31 lines
787 B
YAML

name: Build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Login to Docker
uses: https://github.com/docker/login-action@v3
with:
registry: git.nrx.sh
username: ${{ secrets.docker_username }}
password: ${{ secrets.docker_password }}
- name: Build Docker image
run: |
docker build -t nrx-sh:latest . && \
docker tag nrx-sh:latest git.nrx.sh/naresh/nrx-sh:latest && \
docker push git.nrx.sh/naresh/nrx-sh:latest
- name: Notify Watchtower webhook
run: |
curl -H "Authorization: Bearer ${{ secrets.watchtower_token }}" http://watchtower:8080/v1/update