|
|
@ -48,12 +48,8 @@ jobs:
|
|
|
|
repository: ${{ github.repository }}
|
|
|
|
repository: ${{ github.repository }}
|
|
|
|
short-description: ${{ github.event.repository.description }}
|
|
|
|
short-description: ${{ github.event.repository.description }}
|
|
|
|
- name: DEBUG Show Runners environment
|
|
|
|
- name: DEBUG Show Runners environment
|
|
|
|
uses: nick-fields/retry@v3
|
|
|
|
shell: bash
|
|
|
|
with:
|
|
|
|
run: |
|
|
|
|
timeout_minutes: 5
|
|
|
|
|
|
|
|
max_attempts: 3
|
|
|
|
|
|
|
|
retry_wait_seconds: 120
|
|
|
|
|
|
|
|
command: |
|
|
|
|
|
|
|
|
export
|
|
|
|
export
|
|
|
|
- name: Generate temporary tag name
|
|
|
|
- name: Generate temporary tag name
|
|
|
|
shell: bash
|
|
|
|
shell: bash
|
|
|
@ -70,13 +66,17 @@ jobs:
|
|
|
|
echo "app_name=$app_name" >> $GITHUB_OUTPUT
|
|
|
|
echo "app_name=$app_name" >> $GITHUB_OUTPUT
|
|
|
|
id: generate_app_name
|
|
|
|
id: generate_app_name
|
|
|
|
- name: Build amd64 image and export to Docker for testing
|
|
|
|
- name: Build amd64 image and export to Docker for testing
|
|
|
|
uses: docker/build-push-action@v5
|
|
|
|
uses: Wandalen/wretry.action@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
action: docker/build-push-action@v5
|
|
|
|
load: true
|
|
|
|
with: |
|
|
|
|
tags: ghcr.io/${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }}
|
|
|
|
context: .
|
|
|
|
build-args: |
|
|
|
|
load: true
|
|
|
|
RELEASETAG=${{ github.event.inputs.tags }}
|
|
|
|
tags: ghcr.io/${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }}
|
|
|
|
|
|
|
|
build-args: |
|
|
|
|
|
|
|
|
RELEASETAG=${{ github.event.inputs.tags }}
|
|
|
|
|
|
|
|
attempt_limit: 3
|
|
|
|
|
|
|
|
attempt_delay: 600000
|
|
|
|
- name: Run tests using previously built image
|
|
|
|
- name: Run tests using previously built image
|
|
|
|
shell: bash
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
@ -86,11 +86,13 @@ jobs:
|
|
|
|
"${git_clone_scripts_dest}/shell/arch/docker/testrunner.sh" --app-name ${{ steps.generate_app_name.outputs.app_name }} --image-name "ghcr.io/${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }}"
|
|
|
|
"${git_clone_scripts_dest}/shell/arch/docker/testrunner.sh" --app-name ${{ steps.generate_app_name.outputs.app_name }} --image-name "ghcr.io/${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }}"
|
|
|
|
# note this will re-use the internal cached amd64 image from the previous build
|
|
|
|
# note this will re-use the internal cached amd64 image from the previous build
|
|
|
|
- name: Build multi-arch Docker image, tag and push to registries
|
|
|
|
- name: Build multi-arch Docker image, tag and push to registries
|
|
|
|
uses: docker/build-push-action@v5
|
|
|
|
uses: Wandalen/wretry.action@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
action: docker/build-push-action@v5
|
|
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
with: |
|
|
|
|
push: true
|
|
|
|
context: .
|
|
|
|
tags: ${{ github.repository }}:${{ github.event.inputs.tags }}, quay.io/${{ github.repository }}:${{ github.event.inputs.tags }}, ghcr.io/${{ github.repository }}:${{ github.event.inputs.tags }}, registry.gitlab.com/${{ github.repository }}:${{ github.event.inputs.tags }}
|
|
|
|
platforms: linux/amd64
|
|
|
|
build-args: |
|
|
|
|
push: true
|
|
|
|
RELEASETAG=${{ github.event.inputs.tags }}
|
|
|
|
tags: ${{ github.repository }}:${{ github.event.inputs.tags }}, quay.io/${{ github.repository }}:${{ github.event.inputs.tags }}, ghcr.io/${{ github.repository }}:${{ github.event.inputs.tags }}, registry.gitlab.com/${{ github.repository }}:${{ github.event.inputs.tags }}
|
|
|
|
|
|
|
|
build-args: |
|
|
|
|
|
|
|
|
RELEASETAG=${{ github.event.inputs.tags }}
|
|
|
|