chore: Build and deploy to GitLab Container Registry w semantic-release
This commit is contained in:
parent
30fa774bdd
commit
e99c125194
4 changed files with 7359 additions and 1 deletions
|
@ -15,4 +15,11 @@ services:
|
|||
- name: postgres:12
|
||||
|
||||
tests:
|
||||
before_script:
|
||||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||
- docker build --pull -t gitlab.com/mythic-insight/legendary/legendary .
|
||||
|
||||
script: script/cibuild
|
||||
|
||||
build:
|
||||
script: npm run semantic-release
|
||||
|
|
27
Dockerfile
Normal file
27
Dockerfile
Normal file
|
@ -0,0 +1,27 @@
|
|||
FROM elixir:1.8.0-alpine
|
||||
|
||||
RUN apk add make gcc libc-dev
|
||||
|
||||
ENV CC=gcc
|
||||
ENV MIX_HOME=/opt/mix
|
||||
|
||||
RUN mix local.hex --force \
|
||||
&& mix local.rebar --force
|
||||
|
||||
WORKDIR /root/app
|
||||
|
||||
ADD ./ /root/app/
|
||||
|
||||
EXPOSE 4000
|
||||
|
||||
ARG MIX_ENV=prod
|
||||
RUN echo ${MIX_ENV}
|
||||
ENV MIX_ENV=$MIX_ENV
|
||||
ENV PORT=4000
|
||||
|
||||
RUN mix deps.get
|
||||
RUN mix deps.compile
|
||||
RUN MAKE=cmake mix compile
|
||||
RUN mix phx.digest
|
||||
|
||||
CMD ["script/server"]
|
7282
package-lock.json
generated
Normal file
7282
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
42
package.json
Normal file
42
package.json
Normal file
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
"name": "@mythic-insight/legendary",
|
||||
"version": "0.0.0-development",
|
||||
"description": "The Legendary Phoenix Boilerplate.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"semantic-release": "semantic-release"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://gitlab.com/mythic-insight/legendary.git"
|
||||
},
|
||||
"author": "",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://gitlab.com/mythic-insight/legendary/issues"
|
||||
},
|
||||
"homepage": "https://gitlab.com/mythic-insight/legendary#readme",
|
||||
"devDependencies": {
|
||||
"@semantic-release/commit-analyzer": "^6.1.0",
|
||||
"@semantic-release/git": "^7.0.8",
|
||||
"semantic-release": "^15.13.3",
|
||||
"semantic-release-docker": "^2.2.0"
|
||||
},
|
||||
"release": {
|
||||
"plugins": [
|
||||
"@semantic-release/commit-analyzer",
|
||||
"@semantic-release/git",
|
||||
{
|
||||
"path": "semantic-release-docker",
|
||||
"registryUrl": "gitlab.com/mythic-insight/legendary/legendary"
|
||||
}
|
||||
],
|
||||
"publish": [
|
||||
{
|
||||
"path": "semantic-release-docker",
|
||||
"name": "gitlab.com/mythic-insight/legendary/legendary"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue