Refactor build.yaml to simplify go build command
Some checks failed
Actions Build Docker Image / Build-Binary (push) Failing after 3s
Actions Build Docker Image / Build-Docker-Image (push) Failing after 9s

This commit is contained in:
Alex Borisov 2024-02-01 19:13:31 +03:00
parent b5e6fbf388
commit 048e31987f

View File

@ -54,7 +54,7 @@ jobs:
go mod download
- name: Build Binary
run: |
go build -o $(basename ${{ gitea.repository }}) .
go build .
- name: Upload binary to soaska.ru
run: |
package_name=$(basename ${{ gitea.repository }})
@ -64,5 +64,5 @@ jobs:
echo "package_name: $package_name" "branch_name: $branch_name" "current_date: $current_date"
curl --user ${{ secrets.username }}:${{ secrets.password }} \
--upload-file $package_name \
--upload-file MinIO-Share-S3 \
https://soaska.ru/api/packages/${{ secrets.username }}/generic/$package_name-$branch_name/&current_date/$package_name