diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 6c3f9c7..68a117f 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -132,17 +132,19 @@ jobs: group: ${{ matrix.PHP_VERSION }}-${{ matrix.NODE_VERSION }}-${{ matrix.platform }} steps: + # https://github.com/marketplace/actions/download-a-build-artifact - name: Download Digests - amd64 uses: actions/download-artifact@v3 with: name: ${{ env.PACKAGE }}-php-${{ matrix.PHP_VERSION }}-node-${{ matrix.NODE_VERSION }}-amd64 - path: /tmp/${{ env.PACKAGE }}/amd64 + path: /tmp/${{ env.PACKAGE }}/amd64/${{ env.PACKAGE }}-php-${{ matrix.PHP_VERSION }}-node-${{ matrix.NODE_VERSION }}-oci.tar + # https://github.com/marketplace/actions/download-a-build-artifact - name: Download Digests - arm64 uses: actions/download-artifact@v3 with: name: ${{ env.PACKAGE }}-php-${{ matrix.PHP_VERSION }}-node-${{ matrix.NODE_VERSION }}-arm64 - path: /tmp/${{ env.PACKAGE }}/arm64 + path: /tmp/${{ env.PACKAGE }}/arm64/${{ env.PACKAGE }}-php-${{ matrix.PHP_VERSION }}-node-${{ matrix.NODE_VERSION }}-oci.tar # https://github.com/marketplace/actions/docker-setup-buildx - name: Set up Docker Buildx diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 90e057f..355a309 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -89,3 +89,53 @@ jobs: rm -f /tmp/php-${{ matrix.PHP_VERSION }}-node-${{ matrix.NODE_VERSION }}-oci.tar mv /tmp/output.tar /tmp/php-${{ matrix.PHP_VERSION }}-node-${{ matrix.NODE_VERSION }}-oci.tar + # https://github.com/marketplace/actions/upload-a-build-artifact + - name: Upload Digests + uses: actions/upload-artifact@v3 + with: + name: ${{ env.PACKAGE }}-php-${{ matrix.PHP_VERSION }}-node-${{ matrix.NODE_VERSION }}-${{ matrix.platform }} + path: /tmp/php-${{ matrix.PHP_VERSION }}-node-${{ matrix.NODE_VERSION }}-oci.tar + if-no-files-found: error + retention-days: 1 + + download: + name: Test Download Images + needs: build + permissions: + contents: read + packages: write + + strategy: + fail-fast: false + matrix: + PHP_VERSION: + - '8.0' + - '8.3' + NODE_VERSION: + - '16' + - '20' + + runs-on: ubuntu-latest + + concurrency: + group: ${{ matrix.PHP_VERSION }}-${{ matrix.NODE_VERSION }}-${{ matrix.platform }} + + steps: + # https://github.com/marketplace/actions/download-a-build-artifact + - name: Download Digests - amd64 + uses: actions/download-artifact@v3 + with: + name: ${{ env.PACKAGE }}-php-${{ matrix.PHP_VERSION }}-node-${{ matrix.NODE_VERSION }}-amd64 + path: /tmp/${{ env.PACKAGE }}/amd64/${{ env.PACKAGE }}-php-${{ matrix.PHP_VERSION }}-node-${{ matrix.NODE_VERSION }}-oci.tar + + # https://github.com/marketplace/actions/download-a-build-artifact + - name: Download Digests - arm64 + uses: actions/download-artifact@v3 + with: + name: ${{ env.PACKAGE }}-php-${{ matrix.PHP_VERSION }}-node-${{ matrix.NODE_VERSION }}-arm64 + path: /tmp/${{ env.PACKAGE }}/arm64/${{ env.PACKAGE }}-php-${{ matrix.PHP_VERSION }}-node-${{ matrix.NODE_VERSION }}-oci.tar + + - name: List Artifact Downloads + run: ls -R + working-directory: /tmp/${{ env.PACKAGE }} +