mirror of https://git.tuxpa.in/a/code-server.git
CI Fixes
This commit is contained in:
parent
76831f11fc
commit
a065c12e83
|
@ -1,6 +0,0 @@
|
||||||
root = true
|
|
||||||
|
|
||||||
[*]
|
|
||||||
indent_style = space
|
|
||||||
trim_trailing_whitespace = true
|
|
||||||
indent_size = 2
|
|
|
@ -3,6 +3,7 @@ language: minimal
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- name: Test
|
- name: Test
|
||||||
|
if: tag IS blank
|
||||||
script: ./ci/image/run.sh "yarn && yarn vscode && ./ci/ci.sh"
|
script: ./ci/image/run.sh "yarn && yarn vscode && ./ci/ci.sh"
|
||||||
deploy: null
|
deploy: null
|
||||||
- name: Linux Release
|
- name: Linux Release
|
||||||
|
|
|
@ -4,7 +4,7 @@ set -euo pipefail
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
cd "$(dirname "$0")/../.."
|
cd "$(dirname "$0")/../.."
|
||||||
soruce ./ci/lib.sh
|
source ./ci/lib.sh
|
||||||
set_version
|
set_version
|
||||||
|
|
||||||
if [[ ${CI:-} ]]; then
|
if [[ ${CI:-} ]]; then
|
||||||
|
@ -17,7 +17,7 @@ main() {
|
||||||
imageTag+="-arm64"
|
imageTag+="-arm64"
|
||||||
latest="codercom/code-server:arm64"
|
latest="codercom/code-server:arm64"
|
||||||
fi
|
fi
|
||||||
docker build -t "$imageTag" -t "$latest" -f ./ci/release-image/Dockerfile
|
docker build -t "$imageTag" -t "$latest" -f ./ci/release-image/Dockerfile .
|
||||||
docker push codercom/code-server
|
docker push codercom/code-server
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ function main() {
|
||||||
for binary in code-server*; do
|
for binary in code-server*; do
|
||||||
mkdir -p "../binary-upload"
|
mkdir -p "../binary-upload"
|
||||||
|
|
||||||
local prefix="code-server-$code_server_version-"
|
local prefix="code-server-$VERSION-"
|
||||||
local target="${binary#$prefix}"
|
local target="${binary#$prefix}"
|
||||||
if [[ $target == "linux-x86_64" ]]; then
|
if [[ $target == "linux-x86_64" ]]; then
|
||||||
echo "Copying $binary to ../binary-upload/latest-linux"
|
echo "Copying $binary to ../binary-upload/latest-linux"
|
||||||
|
@ -43,7 +43,7 @@ function main() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local gcp_dir
|
local gcp_dir
|
||||||
gcp_dir="../binary-upload/releases/$code_server_version/$target"
|
gcp_dir="../binary-upload/releases/$VERSION/$target"
|
||||||
mkdir -p "$gcp_dir"
|
mkdir -p "$gcp_dir"
|
||||||
|
|
||||||
echo "Copying $binary to $gcp_dir/code-server"
|
echo "Copying $binary to $gcp_dir/code-server"
|
||||||
|
|
Loading…
Reference in New Issue