-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1341 from SUSE/update-release-pipeline
Update release pipeline to build both SLE and Opensuse images
- Loading branch information
Showing
7 changed files
with
159 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
FROM alpine:3.6 | ||
RUN apk add --update --no-cache ca-certificates git curl | ||
FROM opensuse:latest | ||
ENV VERSION v2.6.1 | ||
ENV FILENAME helm-${VERSION}-linux-amd64.tar.gz | ||
RUN zypper in -y curl tar git openssh | ||
RUN curl -L http://storage.googleapis.com/kubernetes-helm/${FILENAME} | tar xzv && \ | ||
mv /linux-amd64/helm /bin/helm | ||
RUN mkdir ~/.ssh | ||
RUN touch ~/.ssh/config | ||
RUN echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
platform: linux | ||
inputs: | ||
- name: stratos-ui | ||
- name: helm-chart-Chart-sle | ||
- name: helm-chart-values-sle | ||
outputs: | ||
- name: helm-chart | ||
image_resource: | ||
type: docker-image | ||
source: | ||
# Generated using Dockerfile.stratos-helm | ||
repository: ci-registry.ngrok.io:80/stratos-helm | ||
tag: "latest" | ||
insecure_registries: [ "ci-registry.ngrok.io:80" ] | ||
|
||
run: | ||
path: sh | ||
args: | ||
- -exc | ||
- | | ||
# Expect this command to fail since k8s isn't available but it will initialise helm locally | ||
helm init || true | ||
ROOT_DIR=$PWD | ||
BASE_IMAGE=${BASE_IMAGE:-opensuse} | ||
STRATOS_UI=${ROOT_DIR}/stratos-ui | ||
cd ${STRATOS_UI}/deploy/kubernetes/ | ||
GIT_TAG="$(git describe $(git rev-list --tags --max-count=1))-$(git rev-parse --short HEAD)" | ||
SHORT_GIT_TAG="$(git describe $(git rev-list --tags --max-count=1))" | ||
cp -f ${ROOT_DIR}/helm-chart-values-sle/values.yaml* console/values.yaml | ||
cp -f ${ROOT_DIR}/helm-chart-Chart-sle/Chart.yaml* console/Chart.yaml | ||
# Generate Helm package | ||
helm package console | ||
cp console*.tgz ${ROOT_DIR}/helm-chart/console-helm-chart-cap-${BASE_IMAGE}-${SHORT_GIT_TAG}.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters