| vegall | 427cdb2 | 2024-06-13 15:59:43 +0000 | [diff] [blame] | 1 | # Copyright 2024 ETSI |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
| 12 | # implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | stages: |
| 17 | - build |
| 18 | |
| 19 | variables: |
| 20 | HELM_EXPERIMENTAL_OCI: 1 |
| 21 | |
| 22 | build-job: |
| 23 | stage: build |
| 24 | before_script: |
| 25 | - apt-get update && apt-get install -y curl tar gzip |
| 26 | - curl -LO https://get.helm.sh/helm-v3.15.1-linux-amd64.tar.gz |
| 27 | - tar -zxvf helm-v3.15.1-linux-amd64.tar.gz |
| 28 | - mv linux-amd64/helm /usr/local/bin/helm |
| 29 | - helm version |
| 30 | script: |
| 31 | - helm dep update installers/helm/osm/ |
| 32 | - helm package installers/helm/osm/ |
| 33 | - echo $CI_JOB_TOKEN | helm registry login $CI_REGISTRY --username gitlab-ci-token --password-stdin |
| 34 | - helm push osm-*.tgz oci://$CI_REGISTRY/osm/devops |
| 35 | only: |
| 36 | - tags |