File tree Expand file tree Collapse file tree 8 files changed +12030
-9245
lines changed Expand file tree Collapse file tree 8 files changed +12030
-9245
lines changed Original file line number Diff line number Diff line change 1+ name : Taxgrid Deploy
2+
3+ on :
4+ push :
5+ branches :
6+ - taxgrid
7+
8+ jobs :
9+ # define job to build and publish docker image
10+ build-and-push-taxgrid :
11+ name : Build Docker image and push to taxgrid
12+ # run only when code is compiling and tests are passing
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v2
18+ - name : Login to Github Packages
19+ uses : docker/login-action@v1
20+ with :
21+ registry : ghcr.io
22+ username : ${{ github.actor }}
23+ password : ${{ secrets.GITHUB_TOKEN }}
24+ - uses : actions/setup-node@v1
25+ with :
26+ node-version : ' 12.x'
27+ - name : npm install
28+ run : |
29+ npm ci
30+ env :
31+ GPR_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32+ CI : true
33+
34+ # - name: semantic release
35+ # uses: codfish/semantic-release-action@master
36+ # id: semantic
37+ # env:
38+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+ # GPR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+ - name : Docker push version
41+ run : |
42+ docker build --build-arg GPR_TOKEN=$GPR_TOKEN -t ghcr.io/eyblockchain/taxgrid-api/tg-zokrates-worker:latest .
43+ docker push ghcr.io/eyblockchain/taxgrid-api/tg-zokrates-worker:latest
44+ env :
45+ GPR_TOKEN : ${{ secrets.GITHUB_TOKEN }}
46+ # - name: Set up Docker Buildx
47+ # uses: docker/setup-buildx-action@v1
48+ # - name: Build and push
49+ # uses: docker/build-push-action@v2
50+ # with:
51+ # context: .
52+ # file: ./Dockerfile
53+ # push: true
54+ # tags: ghcr.io/eyblockchain/taxgrid-api/tg-zokrates-worker:latest
Original file line number Diff line number Diff line change 1+ FROM ubuntu:20.04
12ARG GPR_TOKEN
23
3- FROM zokrates/zokrates:0.6.4 as builder
4+ FROM zokrates/zokrates:0.8.0 as builder
45
5- FROM node:14.11 .0 as node-build
6+ FROM node:16.0 .0 as node-build
67ARG GPR_TOKEN
78WORKDIR /app
89COPY ./package.json ./package-lock.json ./.npmrc ./
910RUN npm ci
1011RUN rm -f .npmrc
1112
12- FROM node:14.11 .0
13+ FROM node:16.0 .0
1314WORKDIR /app
1415
1516COPY --from=node-build /app /app
@@ -23,6 +24,33 @@ COPY ./start-dev ./start-dev
2324
2425RUN apt-get update -y
2526RUN apt-get install -y netcat
27+ RUN apt-get install vim -y
28+ # RUN apt-get install libc6
29+
30+ RUN cd /etc
31+ RUN mkdir gcc-10-base
32+ RUN cd gcc-10-base/
33+ RUN wget http://ftp.de.debian.org/debian/pool/main/g/gcc-10/gcc-10-base_10.2.1-6_amd64.deb
34+ RUN dpkg -i gcc-10-base_10.2.1-6_amd64.deb || :
35+
36+ RUN cd /etc
37+ RUN mkdir libgcc-s1
38+ RUN cd libgcc-s1/
39+ RUN wget http://ftp.de.debian.org/debian/pool/main/g/gcc-10/libgcc-s1_10.2.1-6_amd64.deb
40+ RUN dpkg -i libgcc-s1_10.2.1-6_amd64.deb || :
41+
42+ RUN cd /etc
43+ RUN mkdir libcrypt1
44+ RUN cd libcrypt1/
45+ RUN wget http://ftp.de.debian.org/debian/pool/main/libx/libxcrypt/libcrypt1_4.4.18-4_amd64.deb
46+ RUN dpkg -i libcrypt1_4.4.18-4_amd64.deb || :
47+
48+ RUN cd /etc
49+ RUN mkdir libc6
50+ RUN cd libc6/
51+ RUN wget http://ftp.de.debian.org/debian/pool/main/g/glibc/libc6_2.31-13+deb11u5_amd64.deb
52+ RUN dpkg -i libc6_2.31-13+deb11u5_amd64.deb || :
53+ RUN cd ..
2654
2755ENV ZOKRATES_HOME /app
2856ENV ZOKRATES_STDLIB /app/stdlib
You can’t perform that action at this time.
0 commit comments