Added docker
Some checks failed
Develop Build / build (push) Failing after 52s

This commit is contained in:
Roland Fieger
2025-10-28 12:32:15 +01:00
parent b35ec0902b
commit e4e7e637c5
5 changed files with 73 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ jobs:
- name: Add Nuget Credentials
# run: dotnet nuget update source gitea --username sxhundred --password ${{ secrets.READ_NUGET_PAT }} --store-password-in-clear-text --configfile nuget.config
run: dotnet nuget update source gitea --username sxhundred --password ${{ secrets.READ_NUGET_PAT }} --store-password-in-clear-text --configfile nuget.config
run: dotnet nuget update source gitea --username ${{ secrets.READ_NUGET_USER }} --password ${{ secrets.READ_NUGET_PAT }} --store-password-in-clear-text --configfile nuget.config
- name: Install GitVersion
@@ -53,4 +53,26 @@ jobs:
path: SimplePackage/bin/Debug/*.*nupkg
- name: Publish Develop SimplePackage
run: dotnet nuget push SimplePackage/bin/Debug/*.nupkg --api-key ${{ secrets.READ_NUGET_PAT }} --no-symbols
run: dotnet nuget push SimplePackage/bin/Debug/*.nupkg --api-key ${{ secrets.READ_NUGET_PAT }} --no-symbols
- name: Login to Registry
uses: docker/login-action@v2
with:
registry: Address of your docker registry in gitea
username: ${{ secrets.READ_NUGET_USER
password: ${{ secrets.READ_NUGET_PAT
- name: Build Docker Image
run: |
docker build --build-arg BuildVersion=${{ env.GitVersion_SemVer }} \
--build-arg PACKAGETEST_FEED_URL=http://192.168.2.83:3100/api/packages/sxhundred/nuget/index.json \
--build-arg READ_NUGET_USER=${{ secrets.READ_NUGET_USER }} \
--build-arg READ_NUGET_PAT=${{ secrets.READ_NUGET_PAT }} \
-t myimage:latest .
- name: Push Docker Image
run: |
echo ${{ secrets.READ_NUGET_PAT }} | docker login -u ${{ secrets.READ_NUGET_USER }} --password-stdin
docker tag myimage:latest ${{ secrets.READ_NUGET_USER }}/myimage:develop
docker push ${{ secrets.READ_NUGET_USER }}/myimage:develop