Skip to content

Commit

Permalink
ci(github): add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cuisongliu committed Aug 4, 2021
1 parent 4919324 commit 639ccef
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ jobs:
cp ../cross/linux/amd64/dockerd .
cp ../binary-docker/* .
chmod a+x *
cd ../ && tar zcvf docker-amd64.tar.gz docker
tar zcvf docker-amd64.tar.gz *
mv docker-amd64.tar.gz ../
- name: Save build binaries
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -76,7 +77,8 @@ jobs:
cp ../cross/linux/arm64/dockerd .
cp ../binary-docker/* .
chmod a+x *
cd ../ && tar zcvf docker-arm64.tar.gz docker
tar zcvf docker-arm64.tar.gz *
mv docker-arm64.tar.gz ../
- name: Save build arm64 binaries
uses: actions/upload-artifact@v2
with:
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ jobs:
cp ../cross/linux/amd64/dockerd .
cp ../binary-docker/* .
chmod a+x *
cd ../ && tar zcvf docker-amd64.tar.gz docker
tar zcvf docker-amd64.tar.gz *
mv docker-amd64.tar.gz ../
cd ../
sha256sum docker-amd64.tar.gz > docker-amd64.tar.gz.sha256sum
- name: Save build binaries
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -71,7 +73,9 @@ jobs:
cp ../cross/linux/arm64/dockerd .
cp ../binary-docker/* .
chmod a+x *
cd ../ && tar zcvf docker-arm64.tar.gz docker
tar zcvf docker-arm64.tar.gz *
mv docker-arm64.tar.gz ../
cd ../
sha256sum docker-arm64.tar.gz > docker-arm64.tar.gz.sha256sum
- name: Save build arm64 binaries
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -110,7 +114,7 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./builds/binaries-amd64/docker-amd64.tar.gz
asset_name: docker.tar.gz
asset_name: docker-amd64.tar.gz
asset_content_type: application/gzip
- name: Upload Linux docker linux amd64 sha256 sum
uses: actions/upload-release-asset@v1
Expand All @@ -119,7 +123,7 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./builds/binaries-amd64/docker-amd64.tar.gz.sha256sum
asset_name: docker.tar.gz.sha256sum
asset_name: docker-amd64.tar.gz.sha256sum
asset_content_type: text/plain
- name: Upload Linux docker linux arm64
uses: actions/upload-release-asset@v1
Expand Down

0 comments on commit 639ccef

Please sign in to comment.