added docker login

This commit is contained in:
2025-08-02 21:20:54 +02:00
parent 2bc7d3d13c
commit 9ec5c8e1e4

View File

@@ -9,7 +9,9 @@ on:
env:
CARGO_TERM_COLOR: always
DOCKER_IMAGE_NAME: "watcher-agent"
REGISTRY: git.triggermeelmo.com
IMAGE_NAME: donpat1to/watcher-agent
TAG: ${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || github.ref_name }}
jobs:
detect-project:
@@ -145,6 +147,13 @@ jobs:
echo "Windows binary:"
ls -la windows-bin/
- name: Log in to private registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2