File tree Expand file tree Collapse file tree 8 files changed +20
-14
lines changed Expand file tree Collapse file tree 8 files changed +20
-14
lines changed Original file line number Diff line number Diff line change @@ -23,19 +23,15 @@ jobs:
2323 - name : CHECKOUT REPOSITORY
2424 uses : actions/checkout@v4
2525
26- - name : Prepare image
27- run : |
28- ls
29- echo "Building spring authorization server"
30- cd selenium/authorization-server
31- docker build . -t authorization-server
32- docker tag authorization-server ${{ env.REGISTRY_IMAGE }}:${{ env.IMAGE_TAG }}
33- -
34- name : Login to Docker Hub
26+ - name : Login to Docker Hub
3527 uses : docker/login-action@v3
3628 with :
3729 username : ${{ secrets.DOCKERHUB_USERNAME }}
3830 password : ${{ secrets.DOCKERHUB_PASSWORD }}
39- - name : Push
40- run : |
41- docker push ${{ env.REGISTRY_IMAGE }}:${{ env.IMAGE_TAG }}
31+
32+ - name : Build and push
33+ uses : docker/build-push-action@v6
34+ context : selenium/authorization-server
35+ with :
36+ push : true
37+ tags : ${{ env.REGISTRY_IMAGE }}:${{ env.IMAGE_TAG }}
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ start_uaa() {
2424 begin " Starting UAA ..."
2525
2626 init_uaa
27- kill_container_if_exist uaa
27+ kill_container_if_exist uaa
2828
2929 MOUNT_UAA_CONF_DIR=$CONF_DIR /uaa
3030
@@ -44,6 +44,7 @@ start_uaa() {
4444 --env JAVA_OPTS=" -Djava.security.policy=unlimited -Djava.security.egd=file:/dev/./urandom" \
4545 ${UAA_DOCKER_IMAGE}
4646
47- wait_for_oidc_endpoint uaa $UAA_URL
47+ wait_for_message uaa " Server startup in" 20 10
48+ wait_for_oidc_endpoint uaa $UAA_URL $MOUNT_UAA_CONF_DIR /ca_uaa_certificate.pem
4849 end " UAA is ready"
4950}
Original file line number Diff line number Diff line change 1+ export IDP_TOKEN_ENDPOINT=https://spring:8443/oauth2/token
Original file line number Diff line number Diff line change 1+ export IDP_TOKEN_ENDPOINT=https://uaa:8443/oauth/token
Original file line number Diff line number Diff line change 1+ export IDP_TOKEN_ENDPOINT=https://spring:8443/oauth2/token
Original file line number Diff line number Diff line change 1+ export IDP_TOKEN_ENDPOINT=https://uaa:8443/oauth/token
Original file line number Diff line number Diff line change 1+ export OAUTH_SERVER_CONFIG_DIR=${OAUTH_SERVER_CONFIG_BASEDIR}/oauth/spring
2+ export OAUTH_SCOPES="openid profile"
3+ export OAUTH_CLIENT_ID=rabbitmq_client_code
4+ export IDP=spring
Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ export OAUTH_SIGNING_KEY_ID=legacy-token-key
22export OAUTH_SERVER_CONFIG_DIR=${OAUTH_SERVER_CONFIG_BASEDIR}/oauth/uaa
33export OAUTH_CLIENT_SECRET=rabbitmq_client_code
44export OAUTH_SCOPES="openid profile rabbitmq.*"
5+ export IDP=uaa
You can’t perform that action at this time.
0 commit comments