feat: add release workflow refs NOISSUE
This commit is contained in:
parent
d04b453e6f
commit
36c8aa41b7
@ -51,14 +51,17 @@ jobs:
|
|||||||
echo "Version must match!"
|
echo "Version must match!"
|
||||||
exit -1
|
exit -1
|
||||||
fi
|
fi
|
||||||
# - name: Build and publish
|
- name: Login to Gitea conteiner registry
|
||||||
# env:
|
uses: docker/login-action@v3
|
||||||
# GITEA_USERNAME: gitearobot
|
with:
|
||||||
# GITEA_PASSWORD: ${{ secrets.PACKAGE_GITEA_PAT }}
|
username: gitearobot
|
||||||
# run: |
|
password: ${{ secrets.PACKAGE_GITEA_PAT }}
|
||||||
# REPOSITORY_OWNER=$(echo "$GITHUB_REPOSITORY" | awk -F '/' '{print $1}')
|
registry: git.disi.dev
|
||||||
# REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F '/' '{print $2}' | tr '-' '_')
|
- name: Build and publish
|
||||||
# dotnet nuget add source --name gitea --username $GITEA_USERNAME --password $GITEA_PASSWORD https://git.disi.dev/api/packages/$REPOSITORY_OWNER/nuget/index.json
|
env:
|
||||||
# dotnet pack --include-symbols --include-source -p:PackageVersion=$(cat $REPOSITORY_NAME/VERSION) song_of_the_day.sln
|
GITEA_USERNAME: gitearobot
|
||||||
# dotnet nuget push --source gitea $REPOSITORY_NAME/bin/Release/$REPOSITORY_NAME.$(cat $REPOSITORY_NAME/VERSION).nupkg
|
GITEA_PASSWORD: ${{ secrets.PACKAGE_GITEA_PAT }}
|
||||||
# dotnet nuget push --source gitea $REPOSITORY_NAME/bin/Release/$REPOSITORY_NAME.$(cat $REPOSITORY_NAME/VERSION).symbols.nupkg
|
run: |
|
||||||
|
REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F '/' '{print $2}' | tr '-' '_')
|
||||||
|
docker build -t "git.disi.dev/song-of-the-day:$(cat $REPOSITORY_NAME/VERSION)" ./song_of_the_day
|
||||||
|
docker push "git.disi.dev/song-of-the-day:$(cat $REPOSITORY_NAME/VERSION)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user