2 # Copyright (c) 2020 AT&T Intellectual Property.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 # Macros to invoke shell scripts for PackageCloud
19 name: oran-packagecloud-file-provider
21 - config-file-provider:
23 - file-id: ".packagecloud"
24 target: "$HOME/.packagecloud"
25 - config-file-provider:
27 - file-id: "packagecloud_api"
28 target: "$HOME/packagecloud_api"
31 # {packagecloud-account} is PackageCloud account ID; example: oran
32 # {packagecloud-repo} is PackageCloud repository; example: master, staging
33 # {debian-distribution-versions} is list of DEB package distro/version strings
34 # separated by space; example: ubuntu/bionic debian/stretch
35 # {rpm-distribution-versions} is list of RPM package distro/version strings
36 # separated by space; example: el/4 el/5
37 name: oran-packagecloud-push
41 PACKAGECLOUD_ACCOUNT={packagecloud-account}
42 PACKAGECLOUD_REPO={packagecloud-repo}
43 DEBIAN_DISTRIBUTION_VERSIONS={debian-distribution-versions}
44 RPM_DISTRIBUTION_VERSIONS={rpm-distribution-versions}
45 - shell: !include-raw-escape:
46 - ../shell/packagecloud-push.sh