|
32 | 32 | - name: Set Integration Test Environment |
33 | 33 | if: matrix.os == 'ubuntu-latest' |
34 | 34 | 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 |
36 | 36 | echo "MAVEN_VERIFY_STAGE=verify" >> $GITHUB_OUTPUT |
37 | 37 | echo "127.0.0.1 openam.local" | sudo tee -a /etc/hosts |
38 | 38 | id: maven-profile-flag |
|
87 | 87 | with: |
88 | 88 | driver-opts: network=host |
89 | 89 | - name: Build image |
90 | | - uses: docker/build-push-action@v5 |
| 90 | + uses: docker/build-push-action@v6 |
91 | 91 | continue-on-error: true |
92 | 92 | with: |
93 | 93 | context: ./openam-distribution/openam-distribution-docker |
|
98 | 98 | push: true |
99 | 99 | tags: ${{ steps.meta.outputs.tags }} |
100 | 100 | labels: ${{ steps.meta.outputs.labels }} |
| 101 | + outputs: |
| 102 | + - type=docker,dest=${{ runner.temp }}/${GITHUB_REPOSITORY,,}-image.tar |
| 103 | + - type=registry |
101 | 104 | - name: Docker test |
102 | 105 | shell: bash |
103 | 106 | run: | |
@@ -126,6 +129,12 @@ jobs: |
126 | 129 | DS_DIRMGRPASSWD=passw0rd" > conf.file && java -jar openam-configurator-tool*.jar --file conf.file' |
127 | 130 | sleep 35 |
128 | 131 | 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 | + |
129 | 138 | build-docker-alpine: |
130 | 139 | runs-on: 'ubuntu-latest' |
131 | 140 | services: |
@@ -218,6 +227,16 @@ jobs: |
218 | 227 | with: |
219 | 228 | name: ubuntu-latest-8 |
220 | 229 | 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 | +
|
221 | 240 | - name: Build test Docker image |
222 | 241 | run: | |
223 | 242 | echo \ |
|
0 commit comments