@@ -149,75 +149,3 @@ jobs:
149149 http://openam.example.org:8080/openam/json/authenticate | grep tokenId'
150150
151151 docker inspect --format="{{json .State.Health.Status}}" test-openam | grep -q \"healthy\"
152- build-docker-alpine :
153- runs-on : ' ubuntu-latest'
154- services :
155- registry :
156- image : registry:2
157- ports :
158- - 5000:5000
159- steps :
160- - uses : actions/checkout@v4
161- with :
162- fetch-depth : 0
163- submodules : recursive
164- - name : Get latest release version
165- shell : bash
166- run : |
167- export git_version_last="$(curl -i -o - --silent https://api.github.com/repos/OpenIdentityPlatform/OpenAM/releases/latest | grep -m1 "\"name\"" | cut -d\" -f4)" ; echo "last release: $git_version_last"
168- echo "release_version=$git_version_last" >> $GITHUB_ENV
169- - name : Docker meta
170- id : meta
171- uses : docker/metadata-action@v5
172- with :
173- images : |
174- localhost:5000/${{ github.repository }}
175- tags : |
176- type=raw,value=alpine
177- type=raw,value=${{ env.release_version }}-alpine
178- - name : Set up QEMU
179- uses : docker/setup-qemu-action@v3
180- - name : Set up Docker Buildx
181- uses : docker/setup-buildx-action@v3
182- with :
183- driver-opts : network=host
184- - name : Build image
185- uses : docker/build-push-action@v5
186- continue-on-error : true
187- with :
188- context : ./openam-distribution/openam-distribution-docker
189- file : ./openam-distribution/openam-distribution-docker/Dockerfile-alpine
190- build-args : |
191- VERSION=${{ env.release_version }}
192- platforms : linux/amd64,linux/arm64/8, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6, linux/ppc64le
193- push : true
194- tags : ${{ steps.meta.outputs.tags }}
195- labels : ${{ steps.meta.outputs.labels }}
196- - name : Docker test
197- shell : bash
198- run : |
199- docker run --rm -it -d --memory="2g" -h openam.example.org --name=test localhost:5000/${GITHUB_REPOSITORY,,}:${{ env.release_version }}-alpine
200- timeout 3m bash -c 'until docker inspect --format="{{json .State.Health.Status}}" test | grep -q \"healthy\"; do sleep 10; done'
201- docker exec -w '/usr/openam/ssoconfiguratortools' test bash -c \
202- 'echo "ACCEPT_LICENSES=true
203- SERVER_URL=http://openam.example.org:8080
204- DEPLOYMENT_URI=/$OPENAM_PATH
205- BASE_DIR=$OPENAM_DATA_DIR
206- locale=en_US
207- PLATFORM_LOCALE=en_US
208- AM_ENC_KEY=
209- ADMIN_PWD=passw0rd
210- AMLDAPUSERPASSWD=p@passw0rd
211- COOKIE_DOMAIN=example.org
212- ACCEPT_LICENSES=true
213- DATA_STORE=embedded
214- DIRECTORY_SSL=SIMPLE
215- DIRECTORY_SERVER=openam.example.org
216- DIRECTORY_PORT=50389
217- DIRECTORY_ADMIN_PORT=4444
218- DIRECTORY_JMX_PORT=1689
219- ROOT_SUFFIX=dc=openam,dc=example,dc=org
220- DS_DIRMGRDN=cn=Directory Manager
221- DS_DIRMGRPASSWD=passw0rd" > conf.file && java -jar openam-configurator-tool*.jar --file conf.file'
222- sleep 35
223- docker inspect --format="{{json .State.Health.Status}}" test | grep -q \"healthy\"
0 commit comments