Skip to content

Commit

Permalink
Merge pull request #7 from catenax-ng/main
Browse files Browse the repository at this point in the history
feat!: merge upstream v1.3.0-RC1
  • Loading branch information
evegufy authored Mar 31, 2023
2 parents 97bb877 + 5a7dedb commit 00422c2
Show file tree
Hide file tree
Showing 15 changed files with 364 additions and 83 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/portal-assets-rc-image-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
###############################################################
# Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
###############################################################

name: Portal Assets Release Candidate Auto-image-update

on:
workflow_dispatch:
inputs:
new-image:
description: 'new available image'
required: true
default: 'no content'

env:
IMAGE_BEGINN: 'assetstag: '
IMAGE_FULL_NEW: 'assetstag: ${{ inputs.new-image }}'

jobs:
update-image-tag:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Modify image tag in values-rc.yaml
run: |
sed -i 's/${{ env.IMAGE_BEGINN }}.*/${{ env.IMAGE_FULL_NEW }}/' charts/portal/values-rc.yaml
- name: Commit and push updated values-rc.yaml
run: |
git config user.name github-actions
git config user.email [email protected]
git add charts/portal/values-rc.yaml
git commit -m "Add new images for RC portal assets"
bash ./scripts/push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# SPDX-License-Identifier: Apache-2.0
###############################################################

name: Portal Assets INT Release Auto-image-update
name: Portal Assets Release Auto-image-update

on:
workflow_dispatch:
Expand All @@ -41,14 +41,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Modify image tag in values-int.yaml
- name: Modify image tag in values.yaml
run: |
sed -i 's/${{ env.IMAGE_BEGINN }}.*/${{ env.IMAGE_FULL_NEW }}/' charts/portal/values-int.yaml
sed -i 's/${{ env.IMAGE_BEGINN }}.*/${{ env.IMAGE_FULL_NEW }}/' charts/portal/values.yaml
- name: Commit and push updated values-int.yaml
- name: Commit and push updated values.yaml
run: |
git config user.name github-actions
git config user.email [email protected]
git add charts/portal/values-int.yaml
git commit -m "Add new images for portal assets int"
git add charts/portal/values.yaml
git commit -m "Add new images for portal assets"
bash ./scripts/push.sh
81 changes: 81 additions & 0 deletions .github/workflows/portal-backend-rc-image-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
###############################################################
# Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
###############################################################

name: Portal Backend Release Candidate Auto-image-update

on:
workflow_dispatch:
inputs:
new-image:
description: 'new available image'
required: true
default: 'no content'

env:
ADMINISTRATION_IMAGE_BEGINN: 'administrationservicetag: '
ADMINISTRATION_IMAGE_FULL_NEW: 'administrationservicetag: ${{ inputs.new-image }}'
PORTALMAINTENANCE_IMAGE_BEGINN: 'portalmaintenancetag: '
PORTALMAINTENANCE_IMAGE_FULL_NEW: 'portalmaintenancetag: ${{ inputs.new-image }}'
APPMARKETPLACE_IMAGE_BEGINN: 'appmarketplaceservicetag: '
APPMARKETPLACE_IMAGE_FULL_NEW: 'appmarketplaceservicetag: ${{ inputs.new-image }}'
NOTIFICATION_IMAGE_BEGINN: 'notificationservicetag: '
NOTIFICATION_IMAGE_FULL_NEW: 'notificationservicetag: ${{ inputs.new-image }}'
PORTALMIGRATIONS_IMAGE_BEGINN: 'portalmigrationstag: '
PORTALMIGRATIONS_IMAGE_FULL_NEW: 'portalmigrationstag: ${{ inputs.new-image }}'
CHECKLIST_IMAGE_BEGINN: 'checklistworkertag: '
CHECKLIST_IMAGE_FULL_NEW: 'checklistworkertag: ${{ inputs.new-image }}'
PROVISIONING_IMAGE_BEGINN: 'provisioningservicetag: '
PROVISIONING_IMAGE_FULL_NEW: 'provisioningservicetag: ${{ inputs.new-image }}'
REGISTRATION_IMAGE_BEGINN: 'registrationservicetag: '
REGISTRATION_IMAGE_FULL_NEW: 'registrationservicetag: ${{ inputs.new-image }}'
SERVICES_IMAGE_BEGINN: 'servicesservicetag: '
SERVICES_IMAGE_FULL_NEW: 'servicesservicetag: ${{ inputs.new-image }}'
PROVISIONINGMIGRATIONS_IMAGE_BEGINN: 'provisioningmigrationstag: '
PROVISIONINGMIGRATIONS_IMAGE_FULL_NEW: 'provisioningmigrationstag: ${{ inputs.new-image }}'

jobs:
update-image-tag:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Modify image tag in values-rc.yaml
run: |
sed -i 's/${{ env.ADMINISTRATION_IMAGE_BEGINN }}.*/${{ env.ADMINISTRATION_IMAGE_FULL_NEW }}/' charts/portal/values-rc.yaml
sed -i 's/${{ env.CHECKLIST_IMAGE_BEGINN }}.*/${{ env.CHECKLIST_IMAGE_FULL_NEW }}/' charts/portal/values-rc.yaml
sed -i 's/${{ env.PORTALMAINTENANCE_IMAGE_BEGINN }}.*/${{ env.PORTALMAINTENANCE_IMAGE_FULL_NEW }}/' charts/portal/values-rc.yaml
sed -i 's/${{ env.APPMARKETPLACE_IMAGE_BEGINN }}.*/${{ env.APPMARKETPLACE_IMAGE_FULL_NEW }}/' charts/portal/values-rc.yaml
sed -i 's/${{ env.NOTIFICATION_IMAGE_BEGINN }}.*/${{ env.NOTIFICATION_IMAGE_FULL_NEW }}/' charts/portal/values-rc.yaml
sed -i 's/${{ env.PORTALMIGRATIONS_IMAGE_BEGINN }}.*/${{ env.PORTALMIGRATIONS_IMAGE_FULL_NEW }}/' charts/portal/values-rc.yaml
sed -i 's/${{ env.PROVISIONING_IMAGE_BEGINN }}.*/${{ env.PROVISIONING_IMAGE_FULL_NEW }}/' charts/portal/values-rc.yaml
sed -i 's/${{ env.REGISTRATION_IMAGE_BEGINN }}.*/${{ env.REGISTRATION_IMAGE_FULL_NEW }}/' charts/portal/values-rc.yaml
sed -i 's/${{ env.SERVICES_IMAGE_BEGINN }}.*/${{ env.SERVICES_IMAGE_FULL_NEW }}/' charts/portal/values-rc.yaml
sed -i 's/${{ env.PROVISIONINGMIGRATIONS_IMAGE_BEGINN }}.*/${{ env.PROVISIONINGMIGRATIONS_IMAGE_FULL_NEW }}/' charts/portal/values-rc.yaml
- name: Commit and push updated values-rc.yaml
run: |
git config user.name github-actions
git config user.email [email protected]
git add charts/portal/values-rc.yaml
git commit -m "Add new images for RC portal backend"
bash ./scripts/push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# SPDX-License-Identifier: Apache-2.0
###############################################################

name: Portal Backend INT Release Auto-image-update
name: Portal Backend Release Auto-image-update

on:
workflow_dispatch:
Expand Down Expand Up @@ -59,23 +59,23 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Modify image tag in values-int.yaml
- name: Modify image tag in values.yaml
run: |
sed -i 's/${{ env.ADMINISTRATION_IMAGE_BEGINN }}.*/${{ env.ADMINISTRATION_IMAGE_FULL_NEW }}/' charts/portal/values-int.yaml
sed -i 's/${{ env.CHECKLIST_IMAGE_BEGINN }}.*/${{ env.CHECKLIST_IMAGE_FULL_NEW }}/' charts/portal/values-int.yaml
sed -i 's/${{ env.PORTALMAINTENANCE_IMAGE_BEGINN }}.*/${{ env.PORTALMAINTENANCE_IMAGE_FULL_NEW }}/' charts/portal/values-int.yaml
sed -i 's/${{ env.APPMARKETPLACE_IMAGE_BEGINN }}.*/${{ env.APPMARKETPLACE_IMAGE_FULL_NEW }}/' charts/portal/values-int.yaml
sed -i 's/${{ env.NOTIFICATION_IMAGE_BEGINN }}.*/${{ env.NOTIFICATION_IMAGE_FULL_NEW }}/' charts/portal/values-int.yaml
sed -i 's/${{ env.PORTALMIGRATIONS_IMAGE_BEGINN }}.*/${{ env.PORTALMIGRATIONS_IMAGE_FULL_NEW }}/' charts/portal/values-int.yaml
sed -i 's/${{ env.PROVISIONING_IMAGE_BEGINN }}.*/${{ env.PROVISIONING_IMAGE_FULL_NEW }}/' charts/portal/values-int.yaml
sed -i 's/${{ env.REGISTRATION_IMAGE_BEGINN }}.*/${{ env.REGISTRATION_IMAGE_FULL_NEW }}/' charts/portal/values-int.yaml
sed -i 's/${{ env.SERVICES_IMAGE_BEGINN }}.*/${{ env.SERVICES_IMAGE_FULL_NEW }}/' charts/portal/values-int.yaml
sed -i 's/${{ env.PROVISIONINGMIGRATIONS_IMAGE_BEGINN }}.*/${{ env.PROVISIONINGMIGRATIONS_IMAGE_FULL_NEW }}/' charts/portal/values-int.yaml
sed -i 's/${{ env.ADMINISTRATION_IMAGE_BEGINN }}.*/${{ env.ADMINISTRATION_IMAGE_FULL_NEW }}/' charts/portal/values.yaml
sed -i 's/${{ env.CHECKLIST_IMAGE_BEGINN }}.*/${{ env.CHECKLIST_IMAGE_FULL_NEW }}/' charts/portal/values.yaml
sed -i 's/${{ env.PORTALMAINTENANCE_IMAGE_BEGINN }}.*/${{ env.PORTALMAINTENANCE_IMAGE_FULL_NEW }}/' charts/portal/values.yaml
sed -i 's/${{ env.APPMARKETPLACE_IMAGE_BEGINN }}.*/${{ env.APPMARKETPLACE_IMAGE_FULL_NEW }}/' charts/portal/values.yaml
sed -i 's/${{ env.NOTIFICATION_IMAGE_BEGINN }}.*/${{ env.NOTIFICATION_IMAGE_FULL_NEW }}/' charts/portal/values.yaml
sed -i 's/${{ env.PORTALMIGRATIONS_IMAGE_BEGINN }}.*/${{ env.PORTALMIGRATIONS_IMAGE_FULL_NEW }}/' charts/portal/values.yaml
sed -i 's/${{ env.PROVISIONING_IMAGE_BEGINN }}.*/${{ env.PROVISIONING_IMAGE_FULL_NEW }}/' charts/portal/values.yaml
sed -i 's/${{ env.REGISTRATION_IMAGE_BEGINN }}.*/${{ env.REGISTRATION_IMAGE_FULL_NEW }}/' charts/portal/values.yaml
sed -i 's/${{ env.SERVICES_IMAGE_BEGINN }}.*/${{ env.SERVICES_IMAGE_FULL_NEW }}/' charts/portal/values.yaml
sed -i 's/${{ env.PROVISIONINGMIGRATIONS_IMAGE_BEGINN }}.*/${{ env.PROVISIONINGMIGRATIONS_IMAGE_FULL_NEW }}/' charts/portal/values.yaml
- name: Commit and push updated values-int.yaml
- name: Commit and push updated values.yaml
run: |
git config user.name github-actions
git config user.email [email protected]
git add charts/portal/values-int.yaml
git commit -m "Add new images for int"
git add charts/portal/values.yaml
git commit -m "Add new images for portal backend"
bash ./scripts/push.sh
4 changes: 2 additions & 2 deletions .github/workflows/portal-chart-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
paths:
- 'charts/portal/**'
branches: [main, helm-environments]
branches: [main, helm-environments, release-candidate]
pull_request:
paths:
- 'charts/portal/**'
Expand All @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/portal-rc-image-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
###############################################################
# Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
###############################################################

name: Portal Release Candidate Auto-image-update

on:
workflow_dispatch:
inputs:
new-image:
description: 'new available image'
required: true
default: 'no content'

env:
IMAGE_BEGINN: 'portaltag: '
IMAGE_FULL_NEW: 'portaltag: ${{ inputs.new-image }}'

jobs:
update-image-tag:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Modify image tag in values-rc.yaml
run: |
sed -i 's/${{ env.IMAGE_BEGINN }}.*/${{ env.IMAGE_FULL_NEW }}/' charts/portal/values-rc.yaml
- name: Commit and push updated values-rc.yaml
run: |
git config user.name github-actions
git config user.email [email protected]
git add charts/portal/values-rc.yaml
git commit -m "Add new images for RC portal"
bash ./scripts/push.sh
54 changes: 54 additions & 0 deletions .github/workflows/portal-registration-rc-image-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
###############################################################
# Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
###############################################################

name: Portal Registration Release Candidate Auto-image-update

on:
workflow_dispatch:
inputs:
new-image:
description: 'new available image'
required: true
default: 'no content'

env:
IMAGE_BEGINN: 'registrationtag: '
IMAGE_FULL_NEW: 'registrationtag: ${{ inputs.new-image }}'

jobs:
update-image-tag:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Modify image tag in values-rc.yaml
run: |
sed -i 's/${{ env.IMAGE_BEGINN }}.*/${{ env.IMAGE_FULL_NEW }}/' charts/portal/values-rc.yaml
- name: Commit and push updated values-rc.yaml
run: |
git config user.name github-actions
git config user.email [email protected]
git add charts/portal/values-rc.yaml
git commit -m "Add new images for RC portal registration"
bash ./scripts/push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# SPDX-License-Identifier: Apache-2.0
###############################################################

name: Portal Registration INT Release Auto-image-update
name: Portal Registration Release Auto-image-update

on:
workflow_dispatch:
Expand All @@ -41,14 +41,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Modify image tag in values-int.yaml
- name: Modify image tag in values.yaml
run: |
sed -i 's/${{ env.IMAGE_BEGINN }}.*/${{ env.IMAGE_FULL_NEW }}/' charts/portal/values-int.yaml
sed -i 's/${{ env.IMAGE_BEGINN }}.*/${{ env.IMAGE_FULL_NEW }}/' charts/portal/values.yaml
- name: Commit and push updated values-int.yaml
- name: Commit and push updated values.yaml
run: |
git config user.name github-actions
git config user.email [email protected]
git add charts/portal/values-int.yaml
git commit -m "Add new images for portal registration int"
git add charts/portal/values.yaml
git commit -m "Add new images for portal registration"
bash ./scripts/push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# SPDX-License-Identifier: Apache-2.0
###############################################################

name: Portal INT Release Auto-image-update
name: Portal Release Auto-image-update

on:
workflow_dispatch:
Expand All @@ -41,14 +41,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Modify image tag in values-int.yaml
- name: Modify image tag in values.yaml
run: |
sed -i 's/${{ env.IMAGE_BEGINN }}.*/${{ env.IMAGE_FULL_NEW }}/' charts/portal/values-int.yaml
sed -i 's/${{ env.IMAGE_BEGINN }}.*/${{ env.IMAGE_FULL_NEW }}/' charts/portal/values.yaml
- name: Commit and push updated values-int.yaml
- name: Commit and push updated values.yaml
run: |
git config user.name github-actions
git config user.email [email protected]
git add charts/portal/values-int.yaml
git commit -m "Add new images for portal int"
git add charts/portal/values.yaml
git commit -m "Add new images for portal"
bash ./scripts/push.sh
Loading

0 comments on commit 00422c2

Please sign in to comment.