Compare commits
No commits in common. "5d0f161fd2a7ff106b1ab9c131a63c2d8d4bbd0e" and "14e59af354312c16f94530e66e19ccff796448dc" have entirely different histories.
5d0f161fd2
...
14e59af354
22
.drone.yml
22
.drone.yml
|
@ -1,22 +0,0 @@
|
||||||
# 345678911234567892123456789312345678941234567895123456789612345678971234567898
|
|
||||||
kind: pipeline
|
|
||||||
name: build-and-upload
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: build-and-push
|
|
||||||
image: plugins/docker
|
|
||||||
network_mode: bridge
|
|
||||||
settings:
|
|
||||||
repo: sneak/builder
|
|
||||||
custom_dns: [ 116.202.204.30 ]
|
|
||||||
tags:
|
|
||||||
- ${DRONE_COMMIT_SHA}
|
|
||||||
- ${DRONE_BRANCH}
|
|
||||||
- latest
|
|
||||||
- name: notify
|
|
||||||
image: plugins/slack
|
|
||||||
settings:
|
|
||||||
webhook:
|
|
||||||
from_secret: SLACK_WEBHOOK_URL
|
|
||||||
when:
|
|
||||||
event: pull_request
|
|
|
@ -5,8 +5,7 @@ FROM debian:bullseye-20221205
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
ENV NVM_DIR /usr/local/nvm
|
ENV NVM_DIR /usr/local/nvm
|
||||||
ENV GOROOT /usr/local/go
|
ENV GOROOT /usr/local/go
|
||||||
ENV GOPATH /root/go
|
ENV PATH $PATH:/usr/local/go/bin:/root/go/bin
|
||||||
ENV PATH $PATH:$GOROOT/bin:$GOPATH/bin:$NVM_DIR/versions/node/v18.12.1/bin
|
|
||||||
|
|
||||||
RUN --mount=type=cache,target=/var/cache/apt \
|
RUN --mount=type=cache,target=/var/cache/apt \
|
||||||
apt update && apt install -y \
|
apt update && apt install -y \
|
||||||
|
@ -34,7 +33,9 @@ RUN rm -rf /usr/local/go && \
|
||||||
tar -C /usr/local -xzf go*.linux-$(uname -m).tar.gz && \
|
tar -C /usr/local -xzf go*.linux-$(uname -m).tar.gz && \
|
||||||
echo 'export PATH=$PATH:/usr/local/go/bin' >> /etc/profile
|
echo 'export PATH=$PATH:/usr/local/go/bin' >> /etc/profile
|
||||||
|
|
||||||
RUN mkdir -p "$(go env GOMODCACHE)" && cd $(go env GOMODCACHE) && tar xvf /tmp/modcache.tar && rm /tmp/modcache.tar && cd /tmp
|
RUN go version
|
||||||
|
|
||||||
|
RUN mkdir -p "$(go env GOMODCACHE)" && cd $(go env GOMODCACHE)/../ && tar xvf /tmp/modcache.tar && rm /tmp/modcache.tar && cd /tmp
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
go install -v google.golang.org/protobuf/cmd/protoc-gen-go@v1.28.1 && \
|
go install -v google.golang.org/protobuf/cmd/protoc-gen-go@v1.28.1 && \
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -44,4 +44,4 @@ push:
|
||||||
docker push $(RN):$(shell git branch --show-current)
|
docker push $(RN):$(shell git branch --show-current)
|
||||||
|
|
||||||
deps/modcache.tar:
|
deps/modcache.tar:
|
||||||
cd $(shell go env GOMODCACHE)/ && tar -c . | pv > $(PWD)/deps/modcache.tar
|
cd $(shell go env GOMODCACHE)/../ && tar -c . | pv > $(PWD)/deps/modcache.tar
|
||||||
|
|
17
setup.sh
17
setup.sh
|
@ -1,24 +1,29 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
################################################################################
|
################################################################################
|
||||||
## that's a hell of an act. what do you call it? "JAVASCRIPT"
|
#2345678911234567892123456789312345678941234567895123456789612345678971234567898
|
||||||
################################################################################
|
################################################################################
|
||||||
|
cd /tmp
|
||||||
|
|
||||||
mkdir -p "$NVM_DIR"
|
mkdir -p "$NVM_DIR"
|
||||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
|
||||||
echo "export NVM_DIR=$NVM_DIR" >> /etc/profile
|
echo "export NVM_DIR=$NVM_DIR" >> /etc/profile
|
||||||
echo "source \$NVM_DIR/nvm.sh" >> /etc/profile
|
echo "source \$NVM_DIR/nvm.sh" >> /etc/profile
|
||||||
|
|
||||||
source /etc/profile
|
source /etc/profile
|
||||||
|
|
||||||
CD="/usr/local/nvm/.cache/bin/node-v18.12.1-linux-arm64/"
|
NCD="/usr/local/nvm/.cache/bin/node-v18.12.1-linux-arm64/"
|
||||||
mkdir -p "$NCD"
|
mkdir -p "$NCD"
|
||||||
mv /tmp/node-v18.12.1-linux-arm64.tar.xz "$NCD"
|
mv /tmp/node-v18.12.1-linux-arm64.tar.xz "$NCD"
|
||||||
nvm ls-remote
|
nvm ls-remote
|
||||||
nvm install v18.12.1
|
nvm install v18.12.1
|
||||||
nvm use v18.12.1
|
nvm use v18.12.1
|
||||||
|
|
||||||
npm install -g npm@9.2.0
|
|
||||||
npm install -g yarn
|
npm install -g yarn
|
||||||
yarn global add prettier
|
yarn global add prettier
|
||||||
################################################################################
|
|
||||||
## cleanup
|
prettier --version
|
||||||
################################################################################
|
|
||||||
|
which npm
|
||||||
|
which yarn
|
||||||
|
|
||||||
rm -rf /usr/local/nvm/.cache /tmp/*
|
rm -rf /usr/local/nvm/.cache /tmp/*
|
||||||
|
|
Loading…
Reference in New Issue