Skip to content

Commit

Permalink
remove wf matrix for fetching artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz committed Jul 19, 2024
1 parent 0b0e3c5 commit ad656d2
Showing 1 changed file with 2 additions and 53 deletions.
55 changes: 2 additions & 53 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,72 +3,21 @@ name: Build, Run and Test Docker Image
on: [push]

jobs:
prepare_artifacts:
build-test:
runs-on: ubuntu-latest
strategy:
matrix:
images:
- artifact: alfresco-elasticsearch-live-indexing-metadata
version: 4.0.1
name: alfresco-enterprise-search-metadata
path: search/enterprise/common
classifier: -app.jar
group: org.alfresco
- artifact: alfresco-elasticsearch-live-indexing-path
version: 4.0.1
name: alfresco-enterprise-search-path
path: search/enterprise/common
classifier: -app.jar
group: org.alfresco
- artifact: alfresco-content-services-distribution
version: 23.2.2
name: alfresco-content-services-distribution
path: repository
classifier: .zip
group: org.alfresco
outputs:
artifact: ${{ github.run_number }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7

- name: Hash matrix to use as a cache key
id: hash-matrix
run: echo "| shasum -a 256 | cut -c1-64)"

- name: Setup .netrc
run: |
echo "machine nexus.alfresco.com" >> ~/.netrc
echo "login ${{ secrets.NEXUS_USERNAME }}" >> ~/.netrc
echo "password ${{ secrets.NEXUS_PASSWORD }}" >> ~/.netrc
- name: Fetch artifacts from nexus
run: >-
${{ github.workspace }}/scripts/fetch-artifact.sh
${{ matrix.images.artifact }}
${{ matrix.images.version }}
${{ matrix.images.classifier }}
${{ matrix.images.group }}
${{ matrix.images.path }}
run: ${{ github.workspace }}/scripts/fetch-artifact.sh
working-directory: ${{ github.workspace }}


- name: Upload Artifacts for next job
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # 4.3.4
with:
name: ${{ github.run_number }}
path: ${{ matrix.images.path }}/${{ matrix.images.name }}-${{ matrix.images.version }}${{ matrix.images.classifier }}

build-run-test:
runs-on: ubuntu-latest
needs: prepare_artifacts
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7

- name: Download artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # 4.1.8
with:
name: ${{ github.run_number }}

- name: Set up QEMU
uses: docker/setup-qemu-action@5927c834f5b4fdf503fca6f4c7eccda82949e1ee # 3.1.0

Expand Down

0 comments on commit ad656d2

Please sign in to comment.