Skip to content
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

feat: Updated dockerhub readme in CI pipeline #31

Merged
merged 1 commit into from
May 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
auth:
username: $DOCKER_USERNAME
password: $DOCKER_PASSWORD
<<: *resource_class
<<: *work_directory
steps:
- checkout
Expand All @@ -91,6 +92,7 @@ jobs:
./gradlew check sonar -Dsonar.login=$SONAR_TOKEN -Dgraalvm=true
- store_test_results:
path: build/test-results

build:
executor: jdk-executor
steps:
Expand All @@ -114,6 +116,20 @@ jobs:
- store_test_results:
path: build/test-results

dockerhub_readme:
machine:
image: ubuntu-2204:2023.04.2
steps:
- checkout
- run: |
docker run -v $PWD:/workspace \
-e DOCKERHUB_USERNAME \
-e DOCKERHUB_PASSWORD \
-e DOCKERHUB_REPOSITORY='devatherock/ldap-search-api' \
-e SHORT_DESCRIPTION='Simple REST API to query a LDAP server' \
-e README_FILEPATH='/workspace/README.md' \
peterevans/dockerhub-description:3.4.1

integration_test:
machine:
image: ubuntu-2004:202010-01
Expand Down Expand Up @@ -180,12 +196,18 @@ workflows:
tag: "${CIRCLE_SHA1:0:8},latest"
use-remote-docker: true
docker-username: DOCKER_USERNAME
- dockerhub_readme:
context:
- docker-credentials
- dockerhub-readme-credentials
requires:
- publish
- integration_test:
context:
- docker-credentials
- jumpcloud-credentials
requires:
- publish
- dockerhub_readme
- notify:
context:
- docker-credentials
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
- [#7](https://github.com/devatherock/ldap-search-api/issues/7): Query parameter to specify the attributes to be returned in the result
- [#27](https://github.com/devatherock/ldap-search-api/issues/27): Tests for built-in endpoints like `/health`

### Changed
- [#30](https://github.com/devatherock/ldap-search-api/issues/30): Updated dockerhub readme in CI pipeline

## [0.4.0] - 2023-05-22
### Added
- [#2](https://github.com/devatherock/ldap-search-api/issues/2): Unit tests
Expand Down