1 Commits
Author SHA1 Message Date
amras 5053795a43 security update 4.0.10
See description of fixes here:
https://github.com/hometown-fork/hometown/releases/tag/v4.0.10%2Bhometown-1.1.1

Signed-off-by: Sarma <amras@noreply.git.coopcloud.tech>
2023-09-21 21:03:43 +00:00
3 changed files with 13 additions and 35 deletions
+5 -16
View File
@@ -5,29 +5,18 @@ steps:
- name: download hometown code
image: alpine/curl:8.1.2
commands:
- curl -L -o hometown.tar.gz https://github.com/hometown-fork/hometown/archive/refs/tags/v4.5.11+hometown-1.2.1.tar.gz
- curl -L -o hometown.tar.gz https://github.com/hometown-fork/hometown/archive/refs/tags/v4.0.10+hometown-1.1.1.tar.gz
- "tar -zxvf hometown.tar.gz"
- "rm hometown.tar.gz"
- "mv hometown-* hometown"
- name: build and publish main image
- name: build and publish
image: plugins/docker
settings:
dockerfile: hometown/Dockerfile
context: hometown
username: abra-bot
username: 3wordchant
password:
from_secret: git_coopcloud_tech_token_abra-bot
from_secret: git_coopcloud_tech_token_3wc
repo: git.coopcloud.tech/coop-cloud-chaos-patchs/hometown
tags: v4.5.11-hometown-1.2.1
registry: git.coopcloud.tech
- name: build and publish streaming server image
image: plugins/docker
settings:
dockerfile: hometown/streaming/Dockerfile
context: hometown
username: abra-bot
password:
from_secret: git_coopcloud_tech_token_abra-bot
repo: git.coopcloud.tech/coop-cloud-chaos-patchs/hometown
tags: v4.5.11-hometown-1.2.1-streaming
tags: v4.0.10-hometown-1.1.1
registry: git.coopcloud.tech
-8
View File
@@ -6,11 +6,3 @@ Automated Docker image builds for
[hometown](https://github.com/hometown-fork/hometown)
See [`.drone.yml`](./.drone.yml)
## Releasing a new image
1. Look up the latest verion number from https://github.com/hometown-fork/hometown/releases
2. Edit the URL in [`.drone.yml`](./.drone.yml) to point to the new release and edit `tags` with the new version number, both for the main image and the streaming server image.
3. Commit and push
4. Wait for the build to finish
5. Run `abra recipe upgrade` etc. as normal
+8 -11
View File
@@ -1,23 +1,20 @@
#!/bin/bash
if ! type yq; then
echo "$(tput setaf 1)\`yq\` is not availble, please install version 4.x from https://github.com/mikefarah/yq"
echo "$(tput setaf 1)\`yq\` is not availble, please install from https://github.com/mikefarah/yq"
exit 1
fi
eval "$(yq '.steps.[0].commands[]' < .drone.yml)"
eval "$(yq '.steps.[0].commands[]' < .drone.yml)"
for i in {1..2}
do (
TAG="$(yq ".steps.[$i].settings.tags" < .drone.yml)"
CONTEXT="$(yq ".steps.[$i].settings.context" < .drone.yml)"
DOCKERFILE="$(yq ".steps.[$i].settings.dockerfile" < .drone.yml)"
REPO="$(yq ".steps.[$i].settings.repo" < .drone.yml)"
TAG="$(yq '.steps.[1].settings.tags' < .drone.yml)"
docker build -t "$REPO:$TAG" -f "$DOCKERFILE" "$CONTEXT"
docker push "$REPO:$TAG"
(
cd hometown || return 1
docker build -t "git.coopcloud.tech/coop-cloud-chaos-patchs/hometown:$TAG" .
)
done
rm -r hometown
docker push "git.coopcloud.tech/coop-cloud-chaos-patchs/hometown:$TAG"