Bump version to 1.2.0 #2
17
.drone.yml
17
.drone.yml
@ -5,11 +5,11 @@ 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.2.17+hometown-1.1.2.tar.gz
|
||||
- curl -L -o hometown.tar.gz https://github.com/hometown-fork/hometown/archive/refs/tags/v4.5.6+hometown-1.2.0.tar.gz
|
||||
- "tar -zxvf hometown.tar.gz"
|
||||
- "rm hometown.tar.gz"
|
||||
- "mv hometown-* hometown"
|
||||
- name: build and publish
|
||||
- name: build and publish main image
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: hometown/Dockerfile
|
||||
@ -18,5 +18,16 @@ steps:
|
||||
password:
|
||||
from_secret: git_coopcloud_tech_token_3wc
|
||||
repo: git.coopcloud.tech/coop-cloud-chaos-patchs/hometown
|
||||
tags: v4.2.17-hometown-1.1.2
|
||||
tags: v4.5.6-hometown-1.2.0
|
||||
registry: git.coopcloud.tech
|
||||
- name: build and publish streaming server image
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: hometown/streaming/Dockerfile
|
||||
context: hometown
|
||||
username: 3wordchant
|
||||
password:
|
||||
from_secret: git_coopcloud_tech_token_3wc
|
||||
repo: git.coopcloud.tech/coop-cloud-chaos-patchs/hometown
|
||||
tags: v4.5.6-hometown-1.2.0-streaming
|
||||
registry: git.coopcloud.tech
|
||||
|
||||
@ -10,7 +10,7 @@ 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
|
||||
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
|
||||
5. Run `abra recipe upgrade` etc. as normal
|
||||
|
||||
19
build.sh
19
build.sh
@ -1,20 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
if ! type yq; then
|
||||
echo "$(tput setaf 1)\`yq\` is not availble, please install from https://github.com/mikefarah/yq"
|
||||
echo "$(tput setaf 1)\`yq\` is not availble, please install version 4.x from https://github.com/mikefarah/yq"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
eval "$(yq '.steps.[0].commands[]' < .drone.yml)"
|
||||
eval "$(yq '.steps.[0].commands[]' < .drone.yml)"
|
||||
|
||||
TAG="$(yq '.steps.[1].settings.tags' < .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)"
|
||||
|
||||
(
|
||||
cd hometown || return 1
|
||||
|
||||
docker build -t "git.coopcloud.tech/coop-cloud-chaos-patchs/hometown:$TAG" .
|
||||
docker build -t "$REPO:$TAG" -f "$DOCKERFILE" "$CONTEXT"
|
||||
docker push "$REPO:$TAG"
|
||||
)
|
||||
done
|
||||
|
||||
rm -r hometown
|
||||
|
||||
docker push "git.coopcloud.tech/coop-cloud-chaos-patchs/hometown:$TAG"
|
||||
|
||||
Reference in New Issue
Block a user