-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exposes docker env variables to gradle steps #47
Conversation
run: ./gradlew dockerPushImages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still docker login
after adding env here? If, not, we can remove that in follow-up PR.
@@ -67,6 +60,6 @@ jobs: | |||
- name: Archive integration test report | |||
uses: actions/upload-artifact@v1 | |||
with: | |||
name: integration-test | |||
path: /tmp/integration-test-reports | |||
name: test-reports |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious (not a blocker): Why are we uploading as artifacts when we are uploading to codecov?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
codecov gives us test coverage but not test results
@@ -33,7 +33,7 @@ jobs: | |||
run: ./gradlew jacocoTestReport | |||
|
|||
- name: Copy unit test reports | |||
run: ./gradlew copyAllReports --output-dir=/tmp/unit-test-reports | |||
run: ./gradlew copyAllReports --output-dir=/tmp/test-reports |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be omitted, it's being run later
@@ -67,6 +60,6 @@ jobs: | |||
- name: Archive integration test report | |||
uses: actions/upload-artifact@v1 | |||
with: | |||
name: integration-test | |||
path: /tmp/integration-test-reports | |||
name: test-reports |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
codecov gives us test coverage but not test results
@@ -37,6 +37,9 @@ jobs: | |||
|
|||
- name: Publish docker image | |||
run: ./gradlew publish dockerPushImages | |||
env: | |||
DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
write credentials should be kept distinct from read credentials (this will be a read-only token once dockerhub allows assigning permission to tokens)
Description
Checklist:
Documentation
https://github.com/hypertrace/hypertrace-gradle-docker-plugins/blob/c4cbaa615a03724c17c9eed0decf7311ac8128dc/hypertrace-gradle-docker-plugin/README.md#other-configuration