Skip to content

Commit

Permalink
add uploading and downloading the images as a tar
Browse files Browse the repository at this point in the history
  • Loading branch information
pmacius committed Jul 16, 2024
1 parent 0f3f84c commit e1100ef
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
push: false
load: true
file: ${{ github.workspace }}/${{ matrix.images.path }}/Dockerfile
outputs: type=docker, dest=/tmp/${{ matrix.images.name }}.tar

- name: Run Docker image
run: docker run -d -p 8080:8080 ${{ matrix.images.name }}:test
Expand All @@ -58,11 +59,29 @@ jobs:

- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]

- name: Upload image as a tar for next job
uses: actions/upload-artifact@v4
with:
name: images
path: /tmp/${{ matrix.images.name }}.tar

compose:
name: docker-compose
needs: build-run-test
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: images
path: /tmp

- name: Load Docker images
run: ls -1 /tmp/*.tar | xargs --no-run-if-empty -L 1 docker load -i

- name: Verify docker-compose
uses: Alfresco/alfresco-build-tools/.github/actions/dbp-charts/[email protected]
timeout-minutes: 10
Expand Down

0 comments on commit e1100ef

Please sign in to comment.