mirror of
https://github.com/coder/code-server.git
synced 2026-05-24 13:17:28 +02:00
Add NPM package, debs, rpms and refactor CI/build process
Closes many issues that I'll prune after adding more docs for users.
This commit is contained in:
25
ci/release-container/push.sh
Executable file
25
ci/release-container/push.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
main() {
|
||||
cd "$(dirname "$0")/../.."
|
||||
source ./ci/lib.sh
|
||||
VERSION="$(pkg_json_version)"
|
||||
|
||||
if [[ ${CI-} ]]; then
|
||||
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||
fi
|
||||
|
||||
imageTag="codercom/code-server:$VERSION"
|
||||
if [[ $(arch) == "arm64" ]]; then
|
||||
imageTag+="-arm64"
|
||||
fi
|
||||
|
||||
docker build \
|
||||
-t "$imageTag" \
|
||||
-f ./ci/release-container/Dockerfile .
|
||||
docker push "$imageTag"
|
||||
}
|
||||
|
||||
main "$@"
|
||||
Reference in New Issue
Block a user