-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7141de9
commit c6d718b
Showing
49 changed files
with
596 additions
and
233 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,63 @@ | ||
name: "⚒️ Build docker image" | ||
|
||
on: | ||
pull_request: | ||
types: [ready_for_review] | ||
|
||
jobs: | ||
build_docker: | ||
name: "⚒️ Build docker image" | ||
runs-on: ubuntu-latest | ||
env: | ||
MIX_ENV: test | ||
strategy: | ||
matrix: | ||
elixir: [ '1.14' ] | ||
otp: [ '25' ] | ||
services: | ||
db: | ||
image: postgres:14 | ||
ports: [ '5432:5432' ] | ||
env: | ||
POSTGRES_PASSWORD: postgres | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Get deps cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: deps/ | ||
key: deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }} | ||
|
||
- name: Get build cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: _build/test/ | ||
key: build-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }} | ||
|
||
- name: Setup elixir | ||
uses: erlef/setup-elixir@v1 | ||
with: | ||
elixir-version: ${{ matrix.elixir }} | ||
otp-version: ${{ matrix.otp }} | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9.1.4+sha256.30a1801ac4e723779efed13a21f4c39f9eb6c9fbb4ced101bce06b422593d7c9 | ||
|
||
- name: Install Dependencies | ||
env: # needs env for `mix ecto.setup` | ||
PHX_HOST: localhost | ||
PORT: 4000 | ||
FILE_STORAGE_ADAPTER: local | ||
run: pnpm run setup | ||
|
||
- name: Build docker image | ||
run: docker build -t azimutt . |
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
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 |
---|---|---|
|
@@ -75,10 +75,13 @@ COPY backend/priv priv | |
COPY backend/assets assets | ||
|
||
COPY package.json . | ||
COPY pnpm-workspace.yaml . | ||
COPY pnpm-lock.yaml . | ||
COPY libs/ libs | ||
COPY frontend/ frontend | ||
|
||
RUN npm run docker | ||
RUN npm install -g [email protected] | ||
RUN npm run build:docker | ||
|
||
# Compile the release | ||
COPY backend/lib lib | ||
|
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
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 |
---|---|---|
@@ -1,10 +1,6 @@ | ||
{ | ||
"compilerOptions": { | ||
"strict": false, | ||
"lib": [ | ||
"es5", | ||
"dom", | ||
"es2015.promise" | ||
], | ||
"lib": ["ES2021", "DOM"], | ||
} | ||
} |
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
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
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
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
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
NODE_ENV=development | ||
LOG_LEVEL=info | ||
API_HOST=localhost | ||
API_PORT=4177 | ||
CORS_ALLOW_ORIGIN=https://azimutt.app | ||
API_PORT=3000 | ||
# API_PORT=4177 | ||
CORS_ALLOW_ORIGIN=http://localhost:4000 | ||
# CORS_ALLOW_ORIGIN=https://azimutt.app |
Oops, something went wrong.