Archived
1
0

Fixes for release

This commit is contained in:
Anmol Sethi 2020-06-03 16:22:59 -04:00
parent ab081cd522
commit fd5c5960c2
No known key found for this signature in database
GPG Key ID: 8CEF1878FF10ADEB
3 changed files with 4 additions and 2 deletions

View File

@ -136,7 +136,7 @@ jobs:
name: release-packages
path: ./release-packages
- name: Run ./ci/steps/build-docker-image.sh
uses: ./ci/images/debian8
uses: ./ci/images/centos7
with:
args: ./ci/steps/build-docker-image.sh
- name: Upload release image

View File

@ -30,7 +30,7 @@ release_archive() {
local release_name="code-server-$VERSION-$OS-$ARCH"
if [[ $OS == "linux" ]]; then
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.
mv ./release-standalone "./$release_name"
zip -r "release-packages/$release_name.zip" "./$release_name"

View File

@ -22,3 +22,5 @@ ENV PATH=/usr/local/go/bin:/root/go/bin:$PATH
ENV GO111MODULE=on
RUN go get mvdan.cc/sh/v3/cmd/shfmt
RUN go get github.com/goreleaser/nfpm/cmd/nfpm
RUN curl -fsSL https://get.docker.com | sh