-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into test/internal/tensorflow
- Loading branch information
Showing
116 changed files
with
12,967 additions
and
1,803 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
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,88 @@ | ||
name: 'Build docker image: agent-sidecar' | ||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- '*.*.*' | ||
- 'v*.*.*' | ||
- '*.*.*-*' | ||
- 'v*.*.*-*' | ||
paths: | ||
- 'internal/**' | ||
- '!internal/db/**' | ||
- '!internal/k8s/**' | ||
- 'apis/grpc/**' | ||
- 'pkg/agent/sidecar/**' | ||
- 'cmd/agent/sidecar/**' | ||
- 'dockers/base/Dockerfile' | ||
- 'dockers/agent/sidecar/Dockerfile' | ||
- 'versions/GO_VERSION' | ||
pull_request: | ||
paths: | ||
- 'internal/**' | ||
- '!internal/db/**' | ||
- '!internal/k8s/**' | ||
- 'apis/grpc/**' | ||
- 'pkg/agent/sidecar/**' | ||
- 'cmd/agent/sidecar/**' | ||
- 'dockers/base/Dockerfile' | ||
- 'dockers/agent/sidecar/Dockerfile' | ||
- 'versions/GO_VERSION' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
with: | ||
fetch-depth: 10 | ||
- name: Build the Docker image | ||
run: | | ||
make docker/build/agent-sidecar | ||
- name: login to DockerHub | ||
run: | | ||
echo ${DOCKERHUB_PASS} | docker login --username ${DOCKERHUB_USER} --password-stdin | ||
env: | ||
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }} | ||
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }} | ||
- name: push to DockerHub (master) | ||
if: github.ref == 'refs/heads/master' | ||
run: | | ||
imagename=`make docker/name/agent-sidecar` | ||
docker tag ${imagename} ${imagename}:nightly | ||
docker push ${imagename}:nightly | ||
- name: push to DockerHub (pull request) | ||
if: github.event_name == 'pull_request' | ||
run: | | ||
imagename=`make docker/name/agent-sidecar` | ||
pr_num=`cat $GITHUB_EVENT_PATH | jq -r ".number"` | ||
docker tag ${imagename} ${imagename}:pr-${pr_num} | ||
docker push ${imagename}:pr-${pr_num} | ||
- name: push to DockerHub (tags) | ||
if: startsWith( github.ref, 'refs/tags/') | ||
run: | | ||
imagename=`make docker/name/agent-sidecar` | ||
docker push ${imagename}:latest | ||
tag_name=`echo $GITHUB_REF | sed -e 's:^refs/tags/::'` | ||
docker tag ${imagename} ${imagename}:${tag_name} | ||
docker push ${imagename}:${tag_name} | ||
docker tag ${imagename} ${imagename}:nightly | ||
docker push ${imagename}:nightly | ||
slack: | ||
name: Slack notification | ||
needs: build | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/master' || startsWith( github.ref, 'refs/tags/') | ||
steps: | ||
- uses: technote-space/workflow-conclusion-action@v1 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: 8398a7/action-slack@v2 | ||
with: | ||
author_name: agent-sidecar image build | ||
status: ${{ env.WORKFLOW_CONCLUSION }} | ||
only_mention_fail: channel | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFY_WEBHOOK_URL }} |
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.