-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
67 additions
and
30 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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
name: Release | ||
on: | ||
pull_request: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
|
@@ -17,12 +19,25 @@ jobs: | |
username: ${{ secrets.DOCKER_HUB_USER }} | ||
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | ||
repository: verizondigital/kubectl-flame | ||
tags: test | ||
tags: ${{ steps.vars.outputs.tag }}-jvm | ||
- name: Build JVM Alpine Docker Image | ||
uses: docker/build-push-action@v1 | ||
with: | ||
dockerfile: 'agent/Dockerfile.alpine' | ||
username: ${{ secrets.DOCKER_HUB_USER }} | ||
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | ||
repository: verizondigital/kubectl-flame | ||
tags: test-jvm-alpine | ||
tags: ${{ steps.vars.outputs.tag }}-jvm-alpine | ||
- name: Setup Go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.14 | ||
- name: GoReleaser | ||
uses: goreleaser/goreleaser-action@v1 | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Update new version in krew-index | ||
uses: rajatjindal/[email protected] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
FROM golang:1.14-buster as agentbuild | ||
WORKDIR /go/src/github.com/VerizonMedia/kubectl-flame | ||
ADD . /go/src/github.com/VerizonMedia/kubectl-flame | ||
RUN go get -d -v ./... | ||
RUN cd agent && go build -o /go/bin/agent | ||
|
||
FROM openjdk:8-alpine as asyncprofiler | ||
RUN apk add build-base git linux-headers | ||
RUN git clone https://github.com/edeNFed/async-profiler.git | ||
RUN cd async-profiler && make | ||
|
||
FROM alpine | ||
RUN mkdir -p /app/async-profiler/build | ||
ADD agent /app | ||
COPY --from=agentbuild /go/bin/agent /app | ||
COPY --from=asyncprofiler /async-profiler/build /app/async-profiler/build | ||
COPY --from=asyncprofiler /async-profiler/profiler.sh /app/async-profiler | ||
CMD [ "/app/agent" ] | ||
|
||
CMD [ "/app/agent" ] |
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 |
---|---|---|
|
@@ -14,4 +14,5 @@ type TargetDetails struct { | |
FileName string | ||
Alpine bool | ||
DryRun bool | ||
Image string | ||
} |
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