mirror of https://github.com/coder/code-server.git
Fixes for release
This commit is contained in:
parent
ab081cd522
commit
fd5c5960c2
|
@ -136,7 +136,7 @@ jobs:
|
||||||
name: release-packages
|
name: release-packages
|
||||||
path: ./release-packages
|
path: ./release-packages
|
||||||
- name: Run ./ci/steps/build-docker-image.sh
|
- name: Run ./ci/steps/build-docker-image.sh
|
||||||
uses: ./ci/images/debian8
|
uses: ./ci/images/centos7
|
||||||
with:
|
with:
|
||||||
args: ./ci/steps/build-docker-image.sh
|
args: ./ci/steps/build-docker-image.sh
|
||||||
- name: Upload release image
|
- name: Upload release image
|
||||||
|
|
|
@ -30,7 +30,7 @@ release_archive() {
|
||||||
local release_name="code-server-$VERSION-$OS-$ARCH"
|
local release_name="code-server-$VERSION-$OS-$ARCH"
|
||||||
if [[ $OS == "linux" ]]; then
|
if [[ $OS == "linux" ]]; then
|
||||||
tar -czf "release-packages/$release_name.tar.gz" --transform "s/^\.\/release-standalone/$release_name/" ./release-standalone
|
tar -czf "release-packages/$release_name.tar.gz" --transform "s/^\.\/release-standalone/$release_name/" ./release-standalone
|
||||||
elif [[ $OS == "macos" && $ARCH == "x86_64" ]]; then
|
elif [[ "$OS" == "darwin" && "$ARCH" == "x86_64" ]]; then
|
||||||
# Just exists to make autoupdating from 3.2.0 work again.
|
# Just exists to make autoupdating from 3.2.0 work again.
|
||||||
mv ./release-standalone "./$release_name"
|
mv ./release-standalone "./$release_name"
|
||||||
zip -r "release-packages/$release_name.zip" "./$release_name"
|
zip -r "release-packages/$release_name.zip" "./$release_name"
|
||||||
|
|
|
@ -22,3 +22,5 @@ ENV PATH=/usr/local/go/bin:/root/go/bin:$PATH
|
||||||
ENV GO111MODULE=on
|
ENV GO111MODULE=on
|
||||||
RUN go get mvdan.cc/sh/v3/cmd/shfmt
|
RUN go get mvdan.cc/sh/v3/cmd/shfmt
|
||||||
RUN go get github.com/goreleaser/nfpm/cmd/nfpm
|
RUN go get github.com/goreleaser/nfpm/cmd/nfpm
|
||||||
|
|
||||||
|
RUN curl -fsSL https://get.docker.com | sh
|
||||||
|
|
Loading…
Reference in New Issue