-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overhaul dynamo to make it more modular
- Loading branch information
1 parent
0cab498
commit 3e4718f
Showing
62 changed files
with
873 additions
and
1,950 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
__test__ | ||
node_modules | ||
.dockerignore | ||
.gitignore | ||
.github | ||
babel.config.js | ||
Dockerfile | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# This file wont do us much good in this location, make sure you change the path as directed to continue! | ||
|
||
name: Docker | ||
|
||
on: | ||
push: | ||
# Sequence of patterns matched against refs/tags | ||
tags: | ||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
# workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: npm install and build webpack | ||
run: | | ||
npm install | ||
npm run build | ||
- uses: actions/upload-artifact@master | ||
with: | ||
name: webpack artifacts | ||
path: public/ | ||
test: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
strategy: | ||
matrix: | ||
os: [ubuntu-lastest, windows-2016] | ||
node-version: [12.x, 14.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- uses: actions/download-artifact@master | ||
with: | ||
name: webpack artifacts | ||
path: public | ||
- name: npm install, and test | ||
run: | | ||
npm install | ||
npm test | ||
env: | ||
CI: true | ||
|
||
Build-and-Push-Docker-Image: | ||
runs-on: ubuntu-latest | ||
needs: test | ||
name: Docker Build, Tag, Push | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Download built artifact | ||
uses: actions/download-artifact@master | ||
with: | ||
name: webpack artifacts | ||
path: public | ||
- name: Build container image | ||
uses: docker/build-push-action@v1 | ||
with: | ||
username: ${{github.actor}} | ||
password: ${{secrets.GITHUB_TOKEN}} | ||
registry: docker.pkg.github.com | ||
repository: aristoteleo/dynamo-release | ||
tag_with_sha: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM python:3.6-alpine as base | ||
FROM base as builder | ||
RUN mkdir /install | ||
WORKDIR /install | ||
COPY requirements.txt /requirements.txt | ||
RUN pip install --install-option="--prefix=/install" -r /requirements.txt | ||
FROM base | ||
COPY --from=builder /install /usr/local | ||
COPY src /app | ||
WORKDIR /app | ||
CMD ["dynamo"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.