mirror of
https://gh.wpcy.net/https://github.com/aspirepress/AspireSync.git
synced 2026-05-30 23:44:03 +08:00
* feat: dead simple and dead slow svn checkout scripts for plugins/themes * feat: add scripts to check for updated plugins/themes * tweak: split slugs on commas or whitespace instead of just commas * tweak: replace --plugins and --themes options with --slugs and --slugs-from * tweak: add logging config to Caddyfile * feat: push-sync and update-sync commands * build: bump composer versions
20 lines
520 B
Bash
Executable file
20 lines
520 B
Bash
Executable file
#!/bin/bash
|
|
|
|
. $(dirname $0)/prelude.bash
|
|
|
|
tag=${TAG:-$(git describe --tags --abbrev=0)}
|
|
platform=${PLATFORM:-linux/amd64,linux/arm64}
|
|
|
|
if [[ -n $GHCR_TOKEN ]]; then
|
|
echo $GHCR_TOKEN | docker login ghcr.io -u userame-is-ignored --password-stdin
|
|
push_arg='--push'
|
|
fi
|
|
|
|
buildx() {
|
|
local file=$1
|
|
local name=$2
|
|
local tag=$3
|
|
docker buildx build --platform $platform -f $file --target prod -t $name:$tag -t $name:latest $push_arg .
|
|
}
|
|
|
|
buildx docker/webapp/Dockerfile ghcr.io/aspirepress/aspiresync $tag
|