added docker login
This commit is contained in:
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
@@ -9,7 +9,9 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
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:
|
jobs:
|
||||||
detect-project:
|
detect-project:
|
||||||
@@ -145,6 +147,13 @@ jobs:
|
|||||||
echo "Windows binary:"
|
echo "Windows binary:"
|
||||||
ls -la windows-bin/
|
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
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user