diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml new file mode 100644 index 0000000..9f0e951 --- /dev/null +++ b/.github/workflows/create_release.yml @@ -0,0 +1,20 @@ +name: "release" +on: + push: + tags: + - '[0-9].*' + +jobs: + release: + runs-on: ubuntu-20.04 + steps: + - name: Create Draft Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} release + body: Autogenerated Release ${{ github.ref }} + draft: true diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d3cf32b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM node:16-buster-slim +LABEL version="0.0.1" + +WORKDIR /var/www/lighterpack + +COPY . . + +RUN npm install + +EXPOSE 8080/tcp + +CMD ["nodejs", "app.js"] diff --git a/docker/Dockerfile b/docker/Dockerfile deleted file mode 100644 index 00af796..0000000 --- a/docker/Dockerfile +++ /dev/null @@ -1,23 +0,0 @@ -FROM ubuntu:16.04 -MAINTAINER Nodar Nutsubidze -ENV HOSTNAME lighterpack - -# Install packages -RUN apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -qy \ - git \ - mongodb \ - nodejs \ - npm \ - python-pip - -# Download git repo -RUN git clone https://github.com/galenmaly/lighterpack.git /var/www/lighterpack - -# Move to the directory so we install the libraries in correct folder -RUN cd /var/www/lighterpack && npm install - -# Web -EXPOSE 3000 - -WORKDIR /var/www/lighterpack -CMD ["nodejs", "app.js"]