Auth to registry
This commit is contained in:
parent
e7eea8e7b8
commit
f420e5cc97
1 changed files with 3 additions and 1 deletions
|
@ -6,12 +6,14 @@ on:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
env:
|
env:
|
||||||
LATEST_IMAGE: ${{ github.server_url }}/${{ github.repository }}:latest
|
REGISTRY: git.unjx.de
|
||||||
|
LATEST_IMAGE: ${{ env.REGISTRY }}/${{ github.repository }}:latest
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
|
- run: echo $${{ github.token }} | docker login --username flohoss --password-stdin ${{ env.REGISTRY }}
|
||||||
- run: |
|
- run: |
|
||||||
docker build \
|
docker build \
|
||||||
--build-arg V_GOLANG=${{ vars.V_GOLANG }} \
|
--build-arg V_GOLANG=${{ vars.V_GOLANG }} \
|
||||||
|
|
Loading…
Reference in a new issue