Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
env: | |
ACS_CHART_VERSION: 8.3.0 | |
ACS_VALUES_VERSION: cfb0d426eff14a8b581c31e61db5e670da09ba3b | |
ARTIFACT_NAME: alfresco-docker-images | |
jobs: | |
make-test: | |
outputs: | |
ARTIFACT_NAME: ${{ env.ARTIFACT_NAME }} | |
ACS_VALUES_VERSION: ${{ env.ACS_VALUES_VERSION }} | |
ACS_CHART_VERSION: ${{ env.ACS_CHART_VERSION }} | |
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 | |
- name: Show all built images | |
run: docker images | |
- name: Docker save all baked images whose name include `alfresco` | |
run: | | |
docker save -o /tmp/${{ env.ARTIFACT_NAME }}.tar $(docker images --format "{{.Repository}}:{{.Tag}}" | grep alfresco) | |
- name: Check disk space | |
run: df -h | |
if: always() | |
- name: Upload images as artifact and set outputs with envs | |
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4 | |
with: | |
name: ${{ env.ARTIFACT_NAME }} | |
path: /tmp/${{ env.ARTIFACT_NAME }}.tar | |
retention-days: 1 | |
compression-level: 0 | |
compose-test: | |
uses: ./.github/workflows/compose-test.yml | |
needs: make-test | |
with: | |
artifact_name: ${{ needs.make-test.outputs.ARTIFACT_NAME }} | |
secrets: inherit | |
helm-test: | |
uses: ./.github/workflows/helm-test.yml | |
needs: make-test | |
with: | |
artifact_name: ${{ needs.make-test.outputs.ARTIFACT_NAME }} | |
ACS_VALUES_VERSION: ${{ needs.make-test.outputs.ACS_VALUES_VERSION }} | |
ACS_CHART_VERSION: ${{ needs.make-test.outputs.ACS_CHART_VERSION }} | |
secrets: inherit |