Skip to content

Commit

Permalink
Revert "revert melange config"
Browse files Browse the repository at this point in the history
This reverts commit a1a42cf.
  • Loading branch information
nvanthao committed Dec 19, 2024
1 parent 5b3adee commit 2ebd087
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion deploy/melange.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,26 @@ environment:
- go
- nodejs
- yarn
- make

pipeline:
- runs: |
set -x
export DESTDIR="${{targets.destdir}}"
mkdir -p "${DESTDIR}"

# Build Helm from PR 13439
# to be removed later when latest Helm supports --take-ownership flag
git clone --depth 1 https://github.com/helm/helm.git
cd helm
git fetch --depth 1 origin pull/13439/head:pr-13439
git checkout pr-13439
make
chmod a+x bin/helm
mv bin/helm "${DESTDIR}/usr/local/bin/"
cd ..
rm -rf helm

# Scripts etc.
mv deploy/assets/backup.sh "${DESTDIR}/backup.sh"
mv deploy/assets/restore-db.sh "${DESTDIR}/restore-db.sh"
Expand Down Expand Up @@ -59,6 +72,5 @@ pipeline:
mv bin/kotsadm "${DESTDIR}/kotsadm"
mv bin/kots "${DESTDIR}/kots"

ln -s /usr/bin/helm ${DESTDIR}/usr/local/bin/helm
ln -s /usr/bin/kustomize ${DESTDIR}/usr/local/bin/kustomize
ln -s /usr/bin/kubectl ${DESTDIR}/usr/local/bin/kubectl

0 comments on commit 2ebd087

Please sign in to comment.