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

Attempt to build image without BASE_PREFIX

Cyril Rohrda91c8df9683
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index 7b2d992740b..f3860482369 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -6,6 +6,8 @@ on:
- cron: '20 2 * * *' # Daily at 02:20
push:
+ branches:
+ - feature/docker-slim-image
tags:
- v*
@@ -22,13 +24,10 @@ jobs:
strategy:
matrix:
include:
- - base_prefix:
- platform: linux/amd64
- - base_prefix: ppc64le/
- platform: linux/ppc64le
+ - platform: linux/amd64
+ - platform: linux/ppc64le
bim_support: false
- - base_prefix: arm64v8/
- platform: linux/arm64/v8
+ - platform: linux/arm64/v8
bim_support: false
steps:
- name: Checkout
@@ -58,7 +57,6 @@ jobs:
context: .
platforms: ${{ matrix.platform }}
build-args: |
- BASE_PREFIX=${{ matrix.base_prefix }}
BIM_SUPPORT=${{ matrix.bim_support }}
pull: true
load: true
@@ -80,63 +78,63 @@ jobs:
docker logs openproject --tail 100
wget -O- --retry-on-http-error=503,502 --retry-connrefused http://localhost:8080/api/v3
- - name: Push image
- id: push
- uses: docker/build-push-action@v4
- with:
- context: .
- platforms: ${{ matrix.platform }}
- build-args: |
- BASE_PREFIX=${{ matrix.base_prefix }}
- BIM_SUPPORT=${{ matrix.bim_support }}
- labels: ${{ steps.meta.outputs.labels }}
- outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
- - name: Export digest
- run: |
- mkdir -p /tmp/digests
- digest="${{ steps.push.outputs.digest }}"
- touch "/tmp/digests/${digest#sha256:}"
- - name: Upload digest
- uses: actions/upload-artifact@v3
- with:
- name: digests
- path: /tmp/digests/*
- if-no-files-found: error
- retention-days: 1
- merge:
- runs-on: ubuntu-latest
- needs:
- - build
- steps:
- - name: Download digests
- uses: actions/download-artifact@v3
- with:
- name: digests
- path: /tmp/digests
- - name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v2
- - name: Docker meta
- id: meta
- uses: docker/metadata-action@v4
- with:
- images: ${{ env.REGISTRY_IMAGE }}
- flavor: |
- latest=false
- tags: |
- type=semver,pattern={{version}}
- type=semver,pattern={{major}}.{{minor}}
- type=semver,pattern={{major}}
- type=raw,value=dev,enable={{is_default_branch}}
- - 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
- 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
- run: |
- docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}
+ # - name: Push image
+ # id: push
+ # uses: docker/build-push-action@v4
+ # with:
+ # context: .
+ # platforms: ${{ matrix.platform }}
+ # build-args: |
+ # BASE_PREFIX=${{ matrix.base_prefix }}
+ # BIM_SUPPORT=${{ matrix.bim_support }}
+ # labels: ${{ steps.meta.outputs.labels }}
+ # outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
+ # - name: Export digest
+ # run: |
+ # mkdir -p /tmp/digests
+ # digest="${{ steps.push.outputs.digest }}"
+ # touch "/tmp/digests/${digest#sha256:}"
+ # - name: Upload digest
+ # uses: actions/upload-artifact@v3
+ # with:
+ # name: digests
+ # path: /tmp/digests/*
+ # if-no-files-found: error
+ # retention-days: 1
+ # merge:
+ # runs-on: ubuntu-latest
+ # needs:
+ # - build
+ # steps:
+ # - name: Download digests
+ # uses: actions/download-artifact@v3
+ # with:
+ # name: digests
+ # path: /tmp/digests
+ # - name: Set up Docker Buildx
+ # uses: docker/setup-buildx-action@v2
+ # - name: Docker meta
+ # id: meta
+ # uses: docker/metadata-action@v4
+ # with:
+ # images: ${{ env.REGISTRY_IMAGE }}
+ # flavor: |
+ # latest=false
+ # tags: |
+ # type=semver,pattern={{version}}
+ # type=semver,pattern={{major}}.{{minor}}
+ # type=semver,pattern={{major}}
+ # type=raw,value=dev,enable={{is_default_branch}}
+ # - 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
+ # 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
+ # run: |
+ # docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}