-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (38 loc) · 1.47 KB
/
test-make.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Test building using the make wrapper
on:
push:
paths:
- 'Makefile'
- '.github/workflows/test-make.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
make-test:
runs-on: ubuntu-latest
steps:
- name: Setup nexus authentication
run: |
echo "machine nexus.alfresco.com" >> ~/.netrc
echo "login ${{ secrets.NEXUS_USERNAME }}" >> ~/.netrc
echo "password ${{ secrets.NEXUS_PASSWORD }}" >> ~/.netrc
- name: Set up QEMU
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Make Docker images
id: make
run: |
make all_ci
echo "du=$(du -s | cut -f1)" >> $GITHUB_OUTPUT
- name: Check Images are loaded and artifacts are cleanup
run: |
echo -n "Checking images are loaded in local Docker Engine..."
docker images --format "{{.Repository}}:{{.Tag}}" | grep alfresco || echo "No Alfresco image found" && exit 1
echo "Checking artifacts clean up worked"
if [ ${{ steps.make.outputs.DU }} -lt $(du -s | cut -f1) ]; then
echo "Artifacts were not cleaned up"
exit 1
fi