Skip to content

Commit

Permalink
Merge pull request #1 from Jeffrey04/20240910-initial-commit
Browse files Browse the repository at this point in the history
initial commit to the project
  • Loading branch information
samqi authored Sep 10, 2024
2 parents 74a10c5 + adc65c7 commit 11826b0
Show file tree
Hide file tree
Showing 46 changed files with 17,531 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./data
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.yarn/** linguist-vendored
/.yarn/releases/* binary
/.yarn/plugins/**/* binary
/.pnp.* binary linguist-generated
20 changes: 20 additions & 0 deletions .github/workflows/image-builder-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: image builder dev
run-name: Building new docker containers
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: set lower case owner name
run: echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV}
env:
OWNER: '${{ github.repository_owner }}'
- name: Set current date as env variable
run: echo "TODAY=$(date +'%Y%m%d')" >> $GITHUB_ENV
- uses: actions/checkout@v4
- run: sudo apt-get install -y podman
- run: echo ${{ secrets.GITHUB_TOKEN }} | podman login ghcr.io -u ${{ github.repository_owner }} --password-stdin
- run: podman build --tag "ghcr.io/$OWNER_LC/blockedornot-frontend:$TODAY" -f ./podman/frontend/Dockerfile .
- run: podman build --tag "ghcr.io/$OWNER_LC/blockedornot-backend:$TODAY" -f ./podman/backend/Dockerfile .
- run: podman push "ghcr.io/$OWNER_LC/blockedornot-frontend:$TODAY"
- run: podman push "ghcr.io/$OWNER_LC/blockedornot-backend:$TODAY"
21 changes: 21 additions & 0 deletions .github/workflows/image-builder-latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: image builder latest
run-name: Building new docker containers
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: set lower case owner name
run: echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV}
env:
OWNER: '${{ github.repository_owner }}'
- uses: actions/checkout@v4
- run: sudo apt-get install -y podman
- run: echo ${{ secrets.GITHUB_TOKEN }} | podman login ghcr.io -u ${{ github.repository_owner }} --password-stdin
- run: podman build --tag "ghcr.io/$OWNER_LC/blockedornot-frontend:latest" -f ./podman/frontend/Dockerfile .
- run: podman build --tag "ghcr.io/$OWNER_LC/blockedornot-backend:latest" -f ./podman/backend/Dockerfile .
- run: podman push "ghcr.io/$OWNER_LC/blockedornot-frontend:latest"
- run: podman push "ghcr.io/$OWNER_LC/blockedornot-backend:latest"
62 changes: 62 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
.node-version

node_modules
dist
dist-ssr
*.local

certificates
podman/opensearch/usr/share/opensearch/config/opensearch-security/*

#yarn
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# python
*.pyc

# Packages
/dist/*

# Unit test / coverage reports
.coverage
.pytest_cache

.DS_Store
.idea/*
.python-version
.vscode/*

/docs/site/*
.mypy_cache
__pycache

.venv
/poetry.toml

# podman data
podman/frontend/data
Loading

0 comments on commit 11826b0

Please sign in to comment.