This repository was archived by the owner on Oct 27, 2021. It is now read-only.
File tree 3 files changed +36
-18
lines changed
3 files changed +36
-18
lines changed Original file line number Diff line number Diff line change 1
- name : CI
1
+ name : Build and Publish on release published
2
2
3
- on : [push]
3
+ on :
4
+ release :
5
+ types : [published]
4
6
5
7
jobs :
6
-
7
8
build :
8
-
9
+
9
10
runs-on : ubuntu-latest
11
+
10
12
steps :
11
- - uses : actions/checkout@v2
12
-
13
- - name : Run Docker build
14
- run : docker build .
15
-
16
- - name : Publish Docker
17
-
18
- with :
19
- name : midhub/docker-nodejs/docker-nodejs-crypto
20
- username : $GITHUB_ACTOR
21
- password : ${{ secrets.GITHUB_TOKEN }}
22
- registry : docker.pkg.github.com
13
+ - uses : actions/checkout@v2
14
+ - name : Get the version
15
+ id : get_version
16
+ run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
17
+ - name : Publish Docker
18
+
19
+ with :
20
+ name : midhub/nodejs-crypto
21
+ username : vetermanve
22
+ password : ${{secrets.DOCKER_AUTH_TOKEN}}
23
+ tags : " latest, ${{ steps.get_version.outputs.VERSION }}"
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ FROM node:10.17.0-jessie
3
3
RUN npm -g config set user root
4
4
RUN npm -g install scrypt
5
5
6
- RUN echo "export NODE_PATH=/usr/local/lib/node_modules" >> ~/.profile
7
- RUN echo "export NODE_PATH=/usr/local/lib/node_modules" >> ~/.bashrc
6
+ ENV NODE_PATH /usr/local/lib/node_modules
7
+
8
+ ADD entrypoint.sh /root/
8
9
9
10
ENTRYPOINT ["/root/entrypoint.sh" ]
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ echo " Welcome to nodejs crypto-ready docker build"
4
+ echo " System information:"
5
+
6
+ echo " NODE_PATH:"
7
+ echo ${NODE_PATH:- " [EMPTY]" }
8
+
9
+ echo " Node version:"
10
+ node --version
11
+
12
+ echo " Npm version:"
13
+ npm --version
14
+
15
+ echo " Npm packages installed globally:"
16
+ npm list -g --depth 0
You can’t perform that action at this time.
0 commit comments