Skip to content

Commit

Permalink
feat: Updated dockerhub readme in CI pipeline
Browse files Browse the repository at this point in the history
Closes #30
  • Loading branch information
devatherock committed May 26, 2023
1 parent dc526b2 commit e7b0dfb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
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

0 comments on commit e7b0dfb

Please sign in to comment.