Skip to content

Commit

Permalink
fix(Artifact Download): Fixes the artifact download configuration (#16)
Browse files Browse the repository at this point in the history
- Changes the configuration of the artifact downloads to usae the properfilename.
  • Loading branch information
timnolte authored Dec 13, 2023
1 parent b383f00 commit 3a22121
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 3a22121

Please sign in to comment.