Skip to content

Merge pull request #66 from COPRS/develop #117

Merge pull request #66 from COPRS/develop

Merge pull request #66 from COPRS/develop #117

# Copyright 2023 Airbus
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://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.
name: Build Parent Poms
on:
push:
paths:
- 'rs-core/pom.xml'
- 'rs-libs/pom.xml'
workflow_dispatch:
env:
ARTIFACTORY_BASE: artifactory.coprs.esa-copernicus.eu
ARTIFACTORY_PROJECT_MAVEN: rs-maven
jobs:
parent-pom-changes:
runs-on: ubuntu-latest
outputs:
poms: ${{ steps.filter.outputs.changes }}
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
rs-libs: 'rs-libs/pom.xml'
rs-core: 'rs-core/pom.xml'
deploy-pom:
needs: parent-pom-changes
runs-on: ubuntu-latest
strategy:
matrix:
pom: ${{ fromJSON(needs.parent-pom-changes.outputs.poms) }}
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/deploy-pom
with:
POM: ${{ matrix.pom }}
ARTIFACTORY_BASE: ${{ env.ARTIFACTORY_BASE}}
ARTIFACTORY_PROJECT: ${{ env.ARTIFACTORY_PROJECT_MAVEN}}
WERUM_ARTIFACTORY_USER: ${{ secrets.WERUM_ARTIFACTORY_USER }}
WERUM_ARTIFACTORY_PASSWORD: ${{ secrets.WERUM_ARTIFACTORY_PASSWORD }}