You've already forked helm-gitea
WIP
This commit is contained in:
@ -14,7 +14,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Determine Architecture and Operating System
|
- name: Determine Architecture and Operating System to support x86_64 and ARM based CI nodes
|
||||||
run: |
|
run: |
|
||||||
# determine operating system
|
# determine operating system
|
||||||
OS=$(uname | tr '[:upper:]' '[:lower:]')
|
OS=$(uname | tr '[:upper:]' '[:lower:]')
|
||||||
@ -29,34 +29,44 @@ jobs:
|
|||||||
echo "ARCH=${ARCH}" >> $GITHUB_ENV
|
echo "ARCH=${ARCH}" >> $GITHUB_ENV
|
||||||
echo "INFO: Set ARCH to '${ARCH}'"
|
echo "INFO: Set ARCH to '${ARCH}'"
|
||||||
|
|
||||||
- name: install tools
|
- name: Install packages via apt
|
||||||
run: |
|
run: |
|
||||||
echo "INFO: Update apt cache"
|
|
||||||
apt update --yes
|
apt update --yes
|
||||||
|
|
||||||
echo "INFO: Install packages via apt"
|
echo "INFO: Install packages via apt"
|
||||||
apt install -y curl ca-certificates curl gnupg jq
|
apt install --yes curl ca-certificates curl gnupg jq
|
||||||
|
|
||||||
# helm
|
- name: Install helm
|
||||||
echo "INFO: Install helm"
|
run: |
|
||||||
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
|
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 --force --recursive ${OS}-${ARCH} helm-v${{ env.HELM_VERSION }}-${OS}-${ARCH}.tar.gz
|
||||||
helm version
|
helm version
|
||||||
|
|
||||||
# docker
|
- name: Install yq
|
||||||
|
run: |
|
||||||
|
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
|
||||||
|
rm --force --recursive yq_${OS}_${ARCH} yq_${OS}_${ARCH}.tar.gz
|
||||||
|
yq --version
|
||||||
|
|
||||||
|
- name: Install docker-ce via apt
|
||||||
|
run: |
|
||||||
echo "INFO: Install docker"
|
echo "INFO: Install docker"
|
||||||
install -m 0755 -d /etc/apt/keyrings
|
install -m 0755 -d /etc/apt/keyrings
|
||||||
curl --fail --location --silent --show-error 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 --yes
|
||||||
apt install -y python3 python3-pip apt-transport-https docker-ce-cli
|
apt install --yes python3 python3-pip apt-transport-https docker-ce-cli
|
||||||
|
|
||||||
# aws
|
- name: Install awscli
|
||||||
|
run: |
|
||||||
echo "INFO: Install awscli via python pip"
|
echo "INFO: Install awscli via python pip"
|
||||||
pip install awscli --break-system-packages
|
pip install awscli --break-system-packages
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# - name: Import GPG key
|
# - name: Import GPG key
|
||||||
# id: import_gpg
|
# id: import_gpg
|
||||||
# uses: https://github.com/crazy-max/ghaction-import-gpg@v6
|
# uses: https://github.com/crazy-max/ghaction-import-gpg@v6
|
||||||
@ -69,10 +79,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
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
|
|
||||||
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
|
|
||||||
yq --version
|
|
||||||
|
|
||||||
NEW_TAG="$(git tag --sort=-version:refname | head -n 1)"
|
NEW_TAG="$(git tag --sort=-version:refname | head -n 1)"
|
||||||
OLD_TAG="$(git tag --sort=-version:refname | head -n 2 | tail -n 1)"
|
OLD_TAG="$(git tag --sort=-version:refname | head -n 2 | tail -n 1)"
|
||||||
|
Reference in New Issue
Block a user