Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

don't push other archs if test fails

Markus Kahlf9616c283e88
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index bc084191269..3d7dcec318d 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -20,7 +20,6 @@ jobs:
if: github.repository == 'opf/openproject'
runs-on: ubuntu-latest
strategy:
- fail-fast: false
matrix:
include:
- base_prefix:
@@ -66,6 +65,8 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Test
+ # We only test the native container. If that fails the builds for the others
+ # will be cancelled as well.
if: matrix.platform == 'linux/amd64'
run: |
docker run \
@@ -107,17 +108,14 @@ jobs:
needs:
- build
steps:
- -
- name: Download digests
+ - name: Download digests
uses: actions/download-artifact@v3
with:
name: digests
path: /tmp/digests
- -
- name: Set up Docker Buildx
+ - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- -
- name: Docker meta
+ - name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
@@ -129,19 +127,16 @@ jobs:
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=raw,value=dev,enable={{is_default_branch}}
- -
- name: Login to Docker Hub
+ - name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- -
- name: Create manifest list and push
+ - name: Create manifest list and push
working-directory: /tmp/digests
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
- -
- name: Inspect image
+ - name: Inspect image
run: |
docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}