Skip to content

Commit

Permalink
Enable autoupgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonrychu committed Jun 13, 2022
1 parent f6f12f2 commit 1d900e2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@ jobs:
echo "SHORT_SHA=${SHORT_SHA}" >> $GITHUB_ENV
echo "LATEST_REPO_TAG=${LATEST_REPO_TAG}" >> $GITHUB_ENV
sudo wget https://github.com/mikefarah/yq/releases/download/3.4.0/yq_linux_amd64 -O /usr/bin/yq
sudo chmod +x /usr/bin/yq
sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
sudo chmod +x /usr/local/bin/yq
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
- name: Update metadata files
run: |
set -e
cd chart
yq w -i ${CHART_NAME}/Chart.yaml version ${CHART_VERSION}
yq w -i ${CHART_NAME}/Chart.yaml appVersion ${CONTAINER_VERSION}
yq e -i ".version = \"${CHART_VERSION}\"" ${CHART_NAME}/Chart.yaml
yq e -i ".appVersion = \"${CONTAINER_VERSION}\"" ${CHART_NAME}/Chart.yaml
- name: Build, tag, and push panel image to DockerHub
run: |
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ jobs:
echo $SHORT_SHA
echo $LATEST_REPO_TAG
sudo wget https://github.com/mikefarah/yq/releases/download/3.4.0/yq_linux_amd64 -O /usr/bin/yq
sudo chmod +x /usr/bin/yq
sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
sudo chmod +x /usr/local/bin/yq
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
- name: Update metadata files
run: |
set -e
cd chart
yq w -i ${CHART_NAME}/Chart.yaml version ${CHART_VERSION}
yq w -i ${CHART_NAME}/Chart.yaml appVersion ${CONTAINER_VERSION}
yq e -i ".version = \"${CHART_VERSION}\"" ${CHART_NAME}/Chart.yaml
yq e -i ".appVersion = \"${CONTAINER_VERSION}\"" ${CHART_NAME}/Chart.yaml
- name: Build, tag, and push panel image to Amazon ECR
run: |
Expand Down Expand Up @@ -97,7 +97,8 @@ jobs:
git clone https://x-access-token:${BOT_TOKEN}@github.com/${CENTRAL_REPOSITORY}.git /tmp/central-repo
cd /tmp/central-repo
yq e ".releases[] | select(.name == \"code-server\") | .version = \"${CHART_VERSION}\"" helmfiles/coding/helmfile.yaml
pip3 install ruamel.yaml
./upgrade.py -p helmfiles/coding/helmfile.yaml -n code-server -v ${CHART_VERSION}
git config --global user.email "${BOT_EMAIL}"
git config --global user.name "${BOT_USERNAME}"
Expand Down

0 comments on commit 1d900e2

Please sign in to comment.