forked from jaegertracing/jaeger
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gh action for hotrod ci jobs (jaegertracing#2702)
Signed-off-by: Ashmita Bohara <[email protected]>
- Loading branch information
1 parent
877175c
commit f57c970
Showing
2 changed files
with
51 additions
and
5 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,46 @@ | ||
name: CIT Hotrod | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
hotrod: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- name: Fetch git tags | ||
run: | | ||
git fetch --prune --unshallow --tags | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.15 | ||
|
||
- uses: docker/login-action@v1 | ||
id: dockerhub-login | ||
with: | ||
username: jaegertracingbot | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
env: | ||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | ||
if: env.DOCKERHUB_TOKEN != null | ||
|
||
- name: Export DOCKERHUB_LOGIN variable | ||
run: | | ||
echo "DOCKERHUB_LOGIN=true" >> $GITHUB_ENV | ||
if: steps.dockerhub-login.outcome == 'success' | ||
|
||
- name: Export BRANCH variable | ||
uses: ./.github/actions/setup-branch | ||
|
||
- name: Install tools | ||
run: make install-ci | ||
|
||
- name: Build, test, and publish hotrod image | ||
run: bash scripts/travis/hotrod-integration-test.sh |
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