Skip to content

Commit 5187c33

Browse files
committed
build image to the file
1 parent d83c5aa commit 5187c33

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Set Integration Test Environment
3333
if: matrix.os == 'ubuntu-latest'
3434
run: |
35-
echo "MAVEN_PROFILE_FLAG=-P \!man-pages -DskipTests=true" >> $GITHUB_OUTPUT
35+
echo "MAVEN_PROFILE_FLAG=-P \!man-pages -DskipTests=true -Dcargo.maven.skip=true" >> $GITHUB_OUTPUT
3636
echo "MAVEN_VERIFY_STAGE=verify" >> $GITHUB_OUTPUT
3737
echo "127.0.0.1 openam.local" | sudo tee -a /etc/hosts
3838
id: maven-profile-flag
@@ -87,7 +87,7 @@ jobs:
8787
with:
8888
driver-opts: network=host
8989
- name: Build image
90-
uses: docker/build-push-action@v5
90+
uses: docker/build-push-action@v6
9191
continue-on-error: true
9292
with:
9393
context: ./openam-distribution/openam-distribution-docker
@@ -98,6 +98,9 @@ jobs:
9898
push: true
9999
tags: ${{ steps.meta.outputs.tags }}
100100
labels: ${{ steps.meta.outputs.labels }}
101+
outputs:
102+
- type=docker,dest=${{ runner.temp }}/${GITHUB_REPOSITORY,,}-image.tar
103+
- type=registry
101104
- name: Docker test
102105
shell: bash
103106
run: |
@@ -126,6 +129,12 @@ jobs:
126129
DS_DIRMGRPASSWD=passw0rd" > conf.file && java -jar openam-configurator-tool*.jar --file conf.file'
127130
sleep 35
128131
docker inspect --format="{{json .State.Health.Status}}" test | grep -q \"healthy\"
132+
- name: Upload artifact
133+
uses: actions/upload-artifact@v4
134+
with:
135+
name: openam-image
136+
path: ${{ runner.temp }}/${GITHUB_REPOSITORY,,}-image.tar
137+
129138
build-docker-alpine:
130139
runs-on: 'ubuntu-latest'
131140
services:
@@ -218,6 +227,16 @@ jobs:
218227
with:
219228
name: ubuntu-latest-8
220229
path: openam-server/target/*.war
230+
- name: Download OpenAM Docker image
231+
uses: actions/download-artifact@v4
232+
with:
233+
name: openam-image
234+
path: ${{ runner.temp }}/${GITHUB_REPOSITORY,,}-image.tar
235+
- name: Load image
236+
run: |
237+
docker load --input ${{ runner.temp }}/${GITHUB_REPOSITORY,,}-image.tar
238+
docker image ls -a
239+
221240
- name: Build test Docker image
222241
run: |
223242
echo \

0 commit comments

Comments
 (0)