Fix docker build

This commit is contained in:
Alexandr Bogomyakov
2024-08-05 17:07:38 +03:00
parent ccf54bc279
commit aeacc15439

View File

@@ -84,7 +84,7 @@ jobs:
release_name: Release ${{ github.ref }} release_name: Release ${{ github.ref }}
draft: false draft: false
prerelease: false prerelease: false
- name: Upload binary assets - name: Prepare release downloading
run: | run: |
mkdir artifacts mkdir artifacts
- name: Download Linux binary - name: Download Linux binary
@@ -92,17 +92,26 @@ jobs:
with: with:
name: desubot name: desubot
path: ./artifacts/ path: ./artifacts/
- name: Upload binary assets # - name: Upload binary assets
run: | # run: |
wget https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2 # wget https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2
tar xjf linux-amd64-github-release.tar.bz2 # tar xjf linux-amd64-github-release.tar.bz2
export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} # export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
for artifact in ./artifacts/*; do # for artifact in ./artifacts/*; do
./bin/linux/amd64/github-release upload \ # ./bin/linux/amd64/github-release upload \
-u ${{ steps.get_repo_data.outputs.AUTHOR }} \ # -u ${{ steps.get_repo_data.outputs.AUTHOR }} \
-r ${{ steps.get_repo_data.outputs.REPO_NAME }} \ # -r ${{ steps.get_repo_data.outputs.REPO_NAME }} \
--tag ${{ steps.get_version.outputs.FULL_TAG }} \ # --tag ${{ steps.get_version.outputs.FULL_TAG }} \
--name ${artifact} \ # --name ${artifact} \
--file ${artifact} # --file ${artifact}
done # done
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.publish.outputs.upload_url }}
asset_path: ./artifacts/*
asset_name: desubot-linux-amd64
asset_content_type: application/octet-stream