You've already forked helm-gitea
This commit is contained in:
@ -31,23 +31,31 @@ jobs:
|
|||||||
|
|
||||||
- name: install tools
|
- name: install tools
|
||||||
run: |
|
run: |
|
||||||
apt update -y
|
echo "INFO: Update apt cache"
|
||||||
apt install -y curl ca-certificates curl gnupg
|
apt update --yes
|
||||||
|
|
||||||
|
echo "INFO: Install packages via apt"
|
||||||
|
apt install -y curl ca-certificates curl gnupg jq
|
||||||
|
|
||||||
# helm
|
# helm
|
||||||
curl --fail --location --silent https://get.helm.sh/helm-v${{ env.HELM_VERSION }}-${OS}-${ARCH}.tar.gz --output /dev/stdout | tar --extract --gzip --file /dev/stdin
|
echo "INFO: Install helm"
|
||||||
|
curl --fail --location --output /dev/stdout --silent --show-error https://get.helm.sh/helm-v${{ env.HELM_VERSION }}-${OS}-${ARCH}.tar.gz | tar --extract --gzip --file /dev/stdin
|
||||||
mv ${OS}-${ARCH}/helm /usr/local/bin/
|
mv ${OS}-${ARCH}/helm /usr/local/bin/
|
||||||
rm -rf ${OS}-${ARCH} helm-v${{ env.HELM_VERSION }}-${OS}-${ARCH}.tar.gz
|
rm -rf ${OS}-${ARCH} helm-v${{ env.HELM_VERSION }}-${OS}-${ARCH}.tar.gz
|
||||||
helm version
|
helm version
|
||||||
|
|
||||||
# docker
|
# docker
|
||||||
|
echo "INFO: Install docker"
|
||||||
install -m 0755 -d /etc/apt/keyrings
|
install -m 0755 -d /etc/apt/keyrings
|
||||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
curl --fail --location --silent --show-error https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
||||||
chmod a+r /etc/apt/keyrings/docker.gpg
|
chmod a+r /etc/apt/keyrings/docker.gpg
|
||||||
echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
|
echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||||
apt update -y
|
apt update -y
|
||||||
apt install -y python3 python3-pip apt-transport-https docker-ce-cli
|
apt install -y python3 python3-pip apt-transport-https docker-ce-cli
|
||||||
|
|
||||||
|
# aws
|
||||||
|
echo "INFO: Install awscli via python pip"
|
||||||
pip install awscli --break-system-packages
|
pip install awscli --break-system-packages
|
||||||
# jq
|
|
||||||
apt install -y jq
|
|
||||||
|
|
||||||
# - name: Import GPG key
|
# - name: Import GPG key
|
||||||
# id: import_gpg
|
# id: import_gpg
|
||||||
@ -62,7 +70,7 @@ jobs:
|
|||||||
YQ_VERSION: v4.45.4 # renovate: datasource=github-releases depName=mikefarah/yq
|
YQ_VERSION: v4.45.4 # renovate: datasource=github-releases depName=mikefarah/yq
|
||||||
run: |
|
run: |
|
||||||
# Download yq
|
# Download yq
|
||||||
curl --fail --location --silent https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_${OS}_${ARCH}.tar.gz --output /dev/stdout | tar --extract --gzip --file /dev/stdin
|
curl --fail --location --output /dev/stdout --silent --show-error https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_${OS}_${ARCH}.tar.gz | tar --extract --gzip --file /dev/stdin
|
||||||
mv yq_${OS}_${ARCH} /usr/local/bin
|
mv yq_${OS}_${ARCH} /usr/local/bin
|
||||||
yq --version
|
yq --version
|
||||||
|
|
||||||
@ -80,7 +88,7 @@ jobs:
|
|||||||
# helm package --version "${GITHUB_REF#refs/tags/v}" ./
|
# helm package --version "${GITHUB_REF#refs/tags/v}" ./
|
||||||
# mkdir gitea
|
# mkdir gitea
|
||||||
# mv gitea*.tgz gitea/
|
# mv gitea*.tgz gitea/
|
||||||
# curl --fail --location --silent -o gitea/index.yaml https://dl.gitea.com/charts/index.yaml
|
# curl --fail --location --output gitea/index.yaml --silent --show-error https://dl.gitea.com/charts/index.yaml
|
||||||
# helm repo index gitea/ --url https://dl.gitea.com/charts --merge gitea/index.yaml
|
# helm repo index gitea/ --url https://dl.gitea.com/charts --merge gitea/index.yaml
|
||||||
# # push to dockerhub
|
# # push to dockerhub
|
||||||
# echo ${{ secrets.DOCKER_CHARTS_PASSWORD }} | helm registry login -u ${{ secrets.DOCKER_CHARTS_USERNAME }} registry-1.docker.io --password-stdin
|
# echo ${{ secrets.DOCKER_CHARTS_PASSWORD }} | helm registry login -u ${{ secrets.DOCKER_CHARTS_USERNAME }} registry-1.docker.io --password-stdin
|
||||||
|
Reference in New Issue
Block a user