mirror of
https://github.com/gotson/komga.git
synced 2025-01-08 11:47:47 +08:00
ci: deploy pre-releases
This commit is contained in:
parent
23e1240f8d
commit
3105fc4ef4
@ -2,7 +2,7 @@ root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = crlf
|
||||
end_of_line = lf
|
||||
indent_size = 4
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -17,6 +17,10 @@ node_modules
|
||||
*.mv.db
|
||||
*.trace.db
|
||||
|
||||
### SQLite databases
|
||||
*.sqlite
|
||||
*.sqlite-journal
|
||||
|
||||
### STS
|
||||
.apt_generated
|
||||
.classpath
|
||||
|
@ -1,2 +1,11 @@
|
||||
# Arguments
|
||||
# 1: channel
|
||||
|
||||
export DOCKER_CLI_EXPERIMENTAL=enabled
|
||||
PLATFORMS=linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
DOCKER_CHANNEL="latest"
|
||||
else
|
||||
DOCKER_CHANNEL=$1
|
||||
fi
|
||||
|
@ -1,5 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
source "$(dirname "$0")/docker-common.sh"
|
||||
# Arguments:
|
||||
# 1: next version
|
||||
# 2: channel
|
||||
|
||||
source "$(dirname "$0")/docker-common.sh" $2
|
||||
|
||||
# Update Docker CE
|
||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||||
@ -18,8 +22,8 @@ docker buildx inspect --bootstrap
|
||||
# Build docker images (no push)
|
||||
cd komga
|
||||
docker buildx build \
|
||||
--platform $PLATFORMS \
|
||||
--cache-from gotson/komga:latest \
|
||||
--tag gotson/komga:latest \
|
||||
--tag gotson/komga:$1 \
|
||||
--file ./Dockerfile .
|
||||
--platform $PLATFORMS \
|
||||
--cache-from gotson/komga:$DOCKER_CHANNEL \
|
||||
--tag gotson/komga:$DOCKER_CHANNEL \
|
||||
--tag gotson/komga:$1 \
|
||||
--file ./Dockerfile .
|
||||
|
@ -1,4 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
# Arguments:
|
||||
# 1: next version
|
||||
# 2: channel
|
||||
|
||||
# Update version for Gradle
|
||||
echo version=$1 >gradle.properties
|
||||
@ -9,4 +12,4 @@ echo version=$1 >gradle.properties
|
||||
./gradlew generateOpenApiDocs
|
||||
|
||||
# Prepare Dockerhub release
|
||||
source "$(dirname "$0")/prepare-dockerhub.sh" $1
|
||||
source "$(dirname "$0")/prepare-dockerhub.sh" $1 $2
|
||||
|
@ -1,14 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
source "$(dirname "$0")/docker-common.sh"
|
||||
# Arguments:
|
||||
# 1: next version
|
||||
# 2: channel
|
||||
|
||||
source "$(dirname "$0")/docker-common.sh" $2
|
||||
|
||||
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||
|
||||
# Push docker images (built previously)
|
||||
cd komga
|
||||
docker buildx build \
|
||||
--platform $PLATFORMS \
|
||||
--cache-from gotson/komga:latest \
|
||||
--tag gotson/komga:latest \
|
||||
--tag gotson/komga:$1 \
|
||||
--file ./Dockerfile . \
|
||||
--push
|
||||
--platform $PLATFORMS \
|
||||
--cache-from gotson/komga:$DOCKER_CHANNEL \
|
||||
--tag gotson/komga:$DOCKER_CHANNEL \
|
||||
--tag gotson/komga:$1 \
|
||||
--file ./Dockerfile . \
|
||||
--push
|
||||
|
@ -30,8 +30,8 @@
|
||||
[
|
||||
"@semantic-release/exec",
|
||||
{
|
||||
"prepareCmd": ".travis/prepare-release.sh ${nextRelease.version}",
|
||||
"publishCmd": ".travis/publish-dockerhub.sh ${nextRelease.version}"
|
||||
"prepareCmd": ".travis/prepare-release.sh ${nextRelease.version} ${nextRelease.channel}",
|
||||
"publishCmd": ".travis/publish-dockerhub.sh ${nextRelease.version} ${nextRelease.channel}"
|
||||
}
|
||||
],
|
||||
[
|
||||
|
Loading…
Reference in New Issue
Block a user