generated from LinuxSuRen/.github
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add docker image for ks * Bump upx to 3.96
- Loading branch information
1 parent
68364c6
commit 3c49c2c
Showing
4 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,10 +17,29 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
go-version: 1.13.x | ||
- name: Upgrade upx | ||
run: | | ||
# try to fix https://github.com/jenkins-zh/jenkins-cli/issues/493 | ||
wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz | ||
tar xvf upx-3.96-amd64_linux.tar.xz | ||
upx-3.96-amd64_linux/upx -V | ||
sudo mv upx-3.96-amd64_linux/upx $(which upx) | ||
rm -rf upx-3.96-amd64_linux | ||
rm -rf xvf upx-3.96-amd64_linux.tar.xz | ||
upx -V | ||
- name: Run GoReleaser | ||
uses: goreleaser/[email protected] | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_PUBLISH_SECRETS }} | ||
- name: Build image | ||
run: | | ||
ver=$(git describe --tags) | ||
docker login --username ${{ secrets.DOCKER_HUB_USER }} --password ${{secrets.DOCKER_HUB_TOKEN}} | ||
docker build ./build -t surenpi/ks:${ver} | ||
docker push surenpi/ks:${ver} | ||
docker tag surenpi/ks:${ver} surenpi/ks:latest | ||
docker push surenpi/ks:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
.idea/ | ||
bin/ | ||
|
||
build/ks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM kubespheredev/kubectl:v1.17.0 | ||
|
||
COPY ks /usr/local/bin |