Skip to content

Commit

Permalink
feat(api): initial version of sendora city API
Browse files Browse the repository at this point in the history
  • Loading branch information
pchanvallon committed Sep 27, 2023
0 parents commit df3b710
Show file tree
Hide file tree
Showing 59 changed files with 3,357 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
POSTGRES_SERVER=localhost
POSTGRES_DB=sendora
POSTGRES_USER=sendora
POSTGRES_PASSWORD=replace-me
25 changes: 25 additions & 0 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: CD 🚀
on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Log in to GitHub Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./api
push: true
tags: latest
38 changes: 38 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: CI ⚙️
on:
push:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: lint
uses: super-linter/super-linter@v5
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

test:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v4
- name: test
run: |
cd api
dotnet test
build:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: build
run: |
cd api
docker build .
Loading

0 comments on commit df3b710

Please sign in to comment.