-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use distroless for base image (#605)
* 🐳 ♻️ use distroless for agent-ngt image Signed-off-by: Rintaro Okamura <[email protected]> * 🐳 ♻️ use distroless for agent-sidecar image Signed-off-by: Rintaro Okamura <[email protected]> * 🐳 ♻️ use distroless for discoverer-k8s image Signed-off-by: Rintaro Okamura <[email protected]> * 🐳 ♻️ use distroless for gateway-vald image Signed-off-by: Rintaro Okamura <[email protected]> * 🐳 ♻️ use distroless for meta-redis image Signed-off-by: Rintaro Okamura <[email protected]> * 🐳 ♻️ use distroless for meta-cassandra image Signed-off-by: Rintaro Okamura <[email protected]> * 🐳 ♻️ use distroless for manager-backup-mysql image Signed-off-by: Rintaro Okamura <[email protected]> * 🐳 ♻️ use distroless for manager-backup-cassandra image Signed-off-by: Rintaro Okamura <[email protected]> * 🐳 ♻️ use distroless for manager-compressor image Signed-off-by: Rintaro Okamura <[email protected]> * 🐳 ♻️ use distroless for manager-index image Signed-off-by: Rintaro Okamura <[email protected]> * ♻️ add UPX_OPTIONS Signed-off-by: Rintaro Okamura <[email protected]> * 🐳 ♻️ use distroless for manager-replication-* image Signed-off-by: Rintaro Okamura <[email protected]> * 🐳 ♻️ use distroless/static:nonroot image Signed-off-by: Rintaro Okamura <[email protected]> * 🐳 💚 add daily trivy scan Signed-off-by: Rintaro Okamura <[email protected]> * 🐳 💚 add release-time trivy scan Signed-off-by: Rintaro Okamura <[email protected]> * 💚 build binaries and publish them to release page Signed-off-by: Rintaro Okamura <[email protected]> * 🔧 show version ad 'pr-xxx' when pr builds Signed-off-by: Rintaro Okamura <[email protected]> * Revert "🔧 show version ad 'pr-xxx' when pr builds" This reverts commit 4cd9f3b. * 🔧 show version as 'pr-xxx' when PR builds Signed-off-by: Rintaro Okamura <[email protected]> * 🔧 fix info.BuildTime Signed-off-by: Rintaro Okamura <[email protected]> * 🔧 update go.mod.default Signed-off-by: Rintaro Okamura <[email protected]>
- Loading branch information
Showing
35 changed files
with
1,660 additions
and
528 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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: 'Upload artifacts to release' | ||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
build-linux: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: vdaas/vald-ci-container:nightly | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 10 | ||
- name: Fetch golang version | ||
run: | | ||
GO_VERSION=`make version/go` | ||
echo "::set-output name=version::${GO_VERSION}" | ||
id: golang_version | ||
- uses: actions/setup-go@v1 | ||
with: | ||
go-version: ${{ steps.golang_version.outputs.version }} | ||
- name: Build and zip | ||
run: | | ||
make binary/build/zip | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: artifacts-linux | ||
path: ./artifacts/ | ||
# build-macos: ## or using cross-compiler? | ||
# runs-on: macos-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# with: | ||
# fetch-depth: 10 | ||
# - name: Fetch golang version | ||
# run: | | ||
# GO_VERSION=`make version/go` | ||
# echo "::set-output name=version::${GO_VERSION}" | ||
# id: golang_version | ||
# - uses: actions/setup-go@v1 | ||
# with: | ||
# go-version: ${{ steps.golang_version.outputs.version }} | ||
# - name: Build and zip | ||
# run: | | ||
# export PATH=$PATH:$(go env GOPATH)/bin | ||
# brew install llvm libomp protobuf ngt | ||
# make CXXFLAGS="-I/usr/local/opt/llvm/include -mno-avx512f -mno-avx512dq -mno-avx512cd -mno-avx512bw -mno-avx512vl" binary/build/zip | ||
# - name: Upload artifact | ||
# uses: actions/upload-artifact@v2 | ||
# with: | ||
# name: artifacts-macos | ||
# path: ./artifacts | ||
publish: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build-linux | ||
# - build-macos | ||
# - build-windows | ||
steps: | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: artifacts-linux | ||
path: tmp/linux | ||
# - uses: actions/download-artifact@v2 | ||
# with: | ||
# name: artifacts-macos | ||
# path: tmp/macos | ||
- uses: shogo82148/actions-upload-release-asset@v1 | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: tmp/linux/vald-*.zip |
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
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
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
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
Oops, something went wrong.