ci: dockerize
このコミットが含まれているのは:
コミット
b4baffb8f4
|
@ -70,12 +70,12 @@ jobs:
|
||||||
context: ./
|
context: ./
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/nodejs-demo:latest
|
tags: ${{ secrets.DOCKERHUB_USERNAME }}/jandapress:latest
|
||||||
|
|
||||||
- name: Run the image in a container
|
- name: Run the image in a container
|
||||||
uses: addnab/docker-run-action@v3
|
uses: addnab/docker-run-action@v3
|
||||||
with:
|
with:
|
||||||
image: ${{ secrets.DOCKERHUB_USERNAME }}/nodejs-demo:latest
|
image: ${{ secrets.DOCKERHUB_USERNAME }}/jandapress:latest
|
||||||
run: |
|
run: |
|
||||||
echo "runing the docker image"
|
echo "runing the docker image"
|
||||||
echo ${{ steps.docker_build.outputs.digest }}
|
echo ${{ steps.docker_build.outputs.digest }}
|
|
@ -3,6 +3,6 @@ WORKDIR /srv/app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install
|
RUN npm install
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run postinstall
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
CMD ["node", "build/src/index.js"]
|
CMD ["node", "build/src/index.js"]
|
|
@ -12,6 +12,7 @@
|
||||||
"start:dev": "ts-node-dev src/index.ts",
|
"start:dev": "ts-node-dev src/index.ts",
|
||||||
"lint": "npx eslint . --ext .ts",
|
"lint": "npx eslint . --ext .ts",
|
||||||
"lint:fix": "npx eslint . --fix",
|
"lint:fix": "npx eslint . --fix",
|
||||||
|
"postinstall": "npm run build",
|
||||||
"test:nhentai": "npx start-server-and-test 3000 \"curl -v http://localhost:3000/nhentai/get?book=177013 | jq '.'\"",
|
"test:nhentai": "npx start-server-and-test 3000 \"curl -v http://localhost:3000/nhentai/get?book=177013 | jq '.'\"",
|
||||||
"test:pururin": "npx start-server-and-test 3000 \"curl -v http://localhost:3000/pururin/get?book=47226 | jq '.'\"",
|
"test:pururin": "npx start-server-and-test 3000 \"curl -v http://localhost:3000/pururin/get?book=47226 | jq '.'\"",
|
||||||
"test:hentaifox": "npx start-server-and-test 3000 \"curl -v http://localhost:3000/hentaifox/get?book=59026 | jq '.'\"",
|
"test:hentaifox": "npx start-server-and-test 3000 \"curl -v http://localhost:3000/hentaifox/get?book=59026 | jq '.'\"",
|
||||||
|
|
読み込み中…
新しいイシューから参照