feat: docker support (#43)

This commit is contained in:
monkeyWie authored and GitHub committed 2022-11-07 16:32:52 +08:00
1 parent e9442edd94
commit 95eb3a427c
9 files changed
+85 -18

No files matched your search

+18 -1
View File
@@ -44,6 +44,8 @@ jobs:
cp $system\vcruntime140.dll $release
cp $system\vcruntime140_1.dll $release
Compress-Archive -Path $release -DestinationPath build\windows\Output\Gopeed-$env:VERSION-windows-amd64.zip
cd build/windows
echo @"
; Script generated by the Inno Setup Script Wizard.
@@ -95,7 +97,7 @@ jobs:
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
"@ > setup.iss
iscc.exe setup.iss
mv "Output\gopeed.exe" "Output\Gopeed-$env:VERSION-windows-amd64.exe"
mv "Output\gopeed.exe" "Output\Gopeed-$env:VERSION-windows-amd64-install.exe"
- name: Upload
uses: shogo82148/actions-upload-release-asset@v1
with:
@@ -318,3 +320,18 @@ jobs:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: dist/zip/*
overwrite: true
build-docker:
runs-on: ubuntu-latest
needs: [get_release]
steps:
- uses: actions/checkout@v3
- name: Build
env:
VERSION: ${{ needs.get_release.outputs.tag_name }}
run: |
tag=liwei2633/gopeed:$VERSION
docker build -t $tag .
docker login -u liwei2633 -p ${{ secrets.DOCKER_PASSWORD }}
docker push $tag
docker tag $tag liwei2633/gopeed:latest
docker push liwei2633/gopeed:latest