Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bb71882938 | ||
|
|
88a36de4f3 | ||
|
|
c6c364b46a | ||
|
|
141f8e39a1 | ||
|
|
c03b77ff82 | ||
|
|
c7bc12588b | ||
|
|
4d5d9f354c | ||
|
|
167ff74e59 | ||
|
|
6c9aab217e | ||
|
|
ff092b9c8c | ||
|
|
d613c742ec | ||
|
|
dcdb186b78 | ||
|
|
e08885ec20 | ||
|
|
1ff4d55e39 | ||
|
|
a5287f8a04 |
+16
-5
@@ -5,18 +5,29 @@ 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.0.6+hometown-1.1.1.tar.gz
|
||||
- curl -L -o hometown.tar.gz https://github.com/hometown-fork/hometown/archive/refs/tags/v4.5.11+hometown-1.2.1.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
|
||||
context: hometown
|
||||
username: 3wordchant
|
||||
username: abra-bot
|
||||
password:
|
||||
from_secret: git_coopcloud_tech_token_3wc
|
||||
from_secret: git_coopcloud_tech_token_abra-bot
|
||||
repo: git.coopcloud.tech/coop-cloud-chaos-patchs/hometown
|
||||
tags: v4.0.6-hometown-1.1.1
|
||||
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
|
||||
registry: git.coopcloud.tech
|
||||
|
||||
@@ -6,3 +6,11 @@ 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
|
||||
|
||||
@@ -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