From 019a7cc02d9150cacd8e86b1325dfc2b951a5383 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 6 Nov 2023 11:01:02 +0000 Subject: [PATCH] Ship OpenCoDE variant to Dockerhub (#26399) --- .github/workflows/dockerhub.yaml | 14 ++++++++++++++ variants/openDesk/README.md | 1 + variants/openDesk/build_config.yaml | 10 ++++++++++ variants/openDesk/customisations.json | 3 +++ variants/openDesk/customisations.json.license | 2 ++ 5 files changed, 30 insertions(+) create mode 100644 variants/openDesk/README.md create mode 100644 variants/openDesk/build_config.yaml create mode 100644 variants/openDesk/customisations.json create mode 100644 variants/openDesk/customisations.json.license diff --git a/.github/workflows/dockerhub.yaml b/.github/workflows/dockerhub.yaml index f38a2fb6a3..c2f904f13b 100644 --- a/.github/workflows/dockerhub.yaml +++ b/.github/workflows/dockerhub.yaml @@ -12,11 +12,24 @@ jobs: name: Docker Buildx runs-on: ubuntu-latest environment: dockerhub + strategy: + fail-fast: false + matrix: + include: + - variant: vanilla + # Variant we ship to aid ESS in providing a build on the OpenCoDE platform including specific modules + - variant: opendesk + flavor: suffix=-opendesk,onlatest=true + prepare: mv variants/openDesk/* . steps: - uses: actions/checkout@v4 with: fetch-depth: 0 # needed for docker-package to be able to calculate the version + - name: Prepare + if: matrix.prepare + run: ${{ matrix.prepare }} + - name: Set up QEMU uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3 @@ -42,6 +55,7 @@ jobs: type=ref,event=tag flavor: | latest=${{ contains(github.ref_name, '-rc.') && 'false' || 'auto' }} + ${{ matrix.flavor }} - name: Build and push uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5 diff --git a/variants/openDesk/README.md b/variants/openDesk/README.md new file mode 100644 index 0000000000..f2aaf121c4 --- /dev/null +++ b/variants/openDesk/README.md @@ -0,0 +1 @@ +https://gitlab.opencode.de/bmi/souveraener_arbeitsplatz diff --git a/variants/openDesk/build_config.yaml b/variants/openDesk/build_config.yaml new file mode 100644 index 0000000000..8953e77f49 --- /dev/null +++ b/variants/openDesk/build_config.yaml @@ -0,0 +1,10 @@ +# SPDX-FileCopyrightText: 2023 Bundesministerium des Innern und für Heimat, PG ZenDiS "Projektgruppe für Aufbau ZenDiS" +# SPDX-License-Identifier: Apache-2.0 +--- +# The modules to install. See ./docs/modules.md for more information on +# what modules are. +# +# The values of this are provided to `yarn add` for inclusion. +modules: + - "@nordeck/element-web-guest-module@1.0.0" + - "@nordeck/element-web-widget-lifecycle-module@1.0.1" diff --git a/variants/openDesk/customisations.json b/variants/openDesk/customisations.json new file mode 100644 index 0000000000..a10751dacd --- /dev/null +++ b/variants/openDesk/customisations.json @@ -0,0 +1,3 @@ +{ + "src/customisations/ComponentVisibility.ts": "node_modules/@nordeck/element-web-guest-module/customisations/ComponentVisibility.ts" +} diff --git a/variants/openDesk/customisations.json.license b/variants/openDesk/customisations.json.license new file mode 100644 index 0000000000..23975ea6bd --- /dev/null +++ b/variants/openDesk/customisations.json.license @@ -0,0 +1,2 @@ +# SPDX-FileCopyrightText: 2023 Bundesministerium des Innern und für Heimat, PG ZenDiS "Projektgruppe für Aufbau ZenDiS" +# SPDX-License-Identifier: Apache-2.0