mirror of
https://gitlab.durp.info/durfy/apps/durpot.git
synced 2026-05-07 07:50:32 -05:00
test action
This commit is contained in:
parent
0e9a2e175b
commit
03b4588d43
6 changed files with 43 additions and 6 deletions
10
.dockerignore
Normal file
10
.dockerignore
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
.git
|
||||
.gitignore
|
||||
.gitlab-ci.yml
|
||||
npm-debug.log
|
||||
Dockerfile*
|
||||
docker-compose*
|
||||
README.md
|
||||
LICENSE
|
||||
.vscode
|
||||
.env
|
||||
11
.editorconfig
Normal file
11
.editorconfig
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
18
.github/workflows/docker-image.yml
vendored
18
.github/workflows/docker-image.yml
vendored
|
|
@ -13,6 +13,18 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build the Docker image
|
||||
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v1
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_REGISTRY_TOKEN }}
|
||||
- name: Build and Push Docker Image
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
push: true # Will only build if this is not here
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository }}:${{ github.ref }}
|
||||
ghcr.io/${{ github.repository }}:latest
|
||||
|
|
|
|||
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
.env
|
||||
node_modules
|
||||
1
.nvmrc
Normal file
1
.nvmrc
Normal file
|
|
@ -0,0 +1 @@
|
|||
v12.13.0
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
FROM node:latest
|
||||
WORKDIR /usr/src/app
|
||||
#COPY package*.json ./
|
||||
#RUN npm install
|
||||
COPY $CI_PROJECT_DIR /usr/src/app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
COPY . /usr/src/app
|
||||
CMD [ "node", "." ]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue