use service name
Some checks failed
Build and Push Image / Build and push image (push) Failing after 45s

This commit is contained in:
Tobias Brunner 2023-11-18 22:22:05 +01:00
parent 9c5d5d4ed0
commit 0d2e9a22a5
Signed by: tobru
SSH key fingerprint: SHA256:kywVhvCA+MIxL6eBgoQa+BfC/ROJqcfD2bpy1PR6Ebk

View file

@ -16,11 +16,12 @@ jobs:
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
with: with:
endpoint: tcp://localhost:2376 endpoint: tcp://docker:2376
- name: Login to Docker Registry - name: Login to Docker Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
endpoint: tcp://docker:2376
registry: git.tbrnt.ch registry: git.tbrnt.ch
username: ${{ secrets.REGISTRY_USERNAME }} username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN }}
@ -28,6 +29,7 @@ jobs:
- name: Build and push - name: Build and push
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
endpoint: tcp://docker:2376
context: . context: .
push: true push: true
tags: | tags: |