release-me-sh 0.10.4 → 0.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/plugins/docker.sh +0 -26
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "release-me-sh",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.5",
|
|
4
4
|
"description": "Blazing fast minimal release workflow script written in Bash with plugins and presets support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bash",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"docs:write-heading-ids": "docusaurus write-heading-ids"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@biomejs/biome": "^1.8.
|
|
44
|
+
"@biomejs/biome": "^1.8.1",
|
|
45
45
|
"@docusaurus/core": "3.4.0",
|
|
46
46
|
"@docusaurus/module-type-aliases": "^3.4.0",
|
|
47
47
|
"@docusaurus/preset-classic": "3.4.0",
|
|
48
48
|
"@docusaurus/types": "^3.4.0",
|
|
49
|
-
"@evilmartians/lefthook": "^1.6.
|
|
49
|
+
"@evilmartians/lefthook": "^1.6.16",
|
|
50
50
|
"@ls-lint/ls-lint": "^2.2.3",
|
|
51
|
-
"@swc/core": "^1.
|
|
51
|
+
"@swc/core": "^1.6.1",
|
|
52
52
|
"commitlint-rs-npm": "dalisoft/commitlint-rs-npm#v0.1.11",
|
|
53
53
|
"dprint": "^0.46.2",
|
|
54
54
|
"prism-react-renderer": "^2.3.1",
|
package/plugins/docker.sh
CHANGED
|
@@ -1,28 +1,6 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
set -eu
|
|
3
3
|
|
|
4
|
-
# Docker buildx script was copied from
|
|
5
|
-
# https://docs.docker.com/build/cloud/ci
|
|
6
|
-
# and modified by @dalisoft for AMD64/ARM64 platforms
|
|
7
|
-
arch=$(uname -m | sed 's/aarch64/arm64/' | sed 's/x86_64/amd64/')
|
|
8
|
-
os=$(uname -s | tr '[:upper:]' '[:lower:]')
|
|
9
|
-
|
|
10
|
-
prepare() {
|
|
11
|
-
BUILDX_URL=$(curl -s https://raw.githubusercontent.com/docker/actions-toolkit/main/.github/buildx-lab-releases.json | grep "${os}-${arch}\",$" | head -1 | xargs | tr -d ',' | xargs)
|
|
12
|
-
# Download docker buildx with Hyrdobuild support
|
|
13
|
-
mkdir -vp "${HOME}/.docker/cli-plugins"
|
|
14
|
-
curl --silent -L --output "${HOME}/.docker/cli-plugins/docker-buildx" "${BUILDX_URL}"
|
|
15
|
-
chmod a+x "${HOME}/.docker/cli-plugins/docker-buildx"
|
|
16
|
-
|
|
17
|
-
printf "%s" "${DOCKER_HUB_PAT-}" | docker login --username "${DOCKER_HUB_USERNAME-}" --password-stdin
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
cleanup() {
|
|
21
|
-
rm -rf "${HOME}/.docker/cli-plugins"
|
|
22
|
-
|
|
23
|
-
docker logout
|
|
24
|
-
}
|
|
25
|
-
|
|
26
4
|
release() {
|
|
27
5
|
# Build and publish a `Docker` tag
|
|
28
6
|
if [ -n "${DOCKER_HUB_USERNAME-}" ] && [ -n "${DOCKER_HUB_PAT-}" ]; then
|
|
@@ -39,15 +17,11 @@ release() {
|
|
|
39
17
|
return 1
|
|
40
18
|
fi
|
|
41
19
|
|
|
42
|
-
prepare
|
|
43
|
-
|
|
44
20
|
docker build -t "${GIT_REPO_NAME-}:${NEXT_BUILD_VERSION-}" . --push
|
|
45
21
|
docker tag "${GIT_REPO_NAME}:${NEXT_BUILD_VERSION}" "${GIT_REPO_NAME}:latest"
|
|
46
22
|
docker push "${GIT_REPO_NAME}:latest"
|
|
47
23
|
|
|
48
24
|
log "Docker image published [${NEXT_RELEASE_TAG}]!"
|
|
49
|
-
|
|
50
|
-
cleanup
|
|
51
25
|
else
|
|
52
26
|
log "Skipped Docker image [${NEXT_RELEASE_TAG}] in DRY-RUN mode."
|
|
53
27
|
fi
|