forked from hobbyfarm/admin-ui
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve newcomer onboarding january 2023 (hobbyfarm#146)
* Improve CONTRIBUTING.md * Merge gitignore entried in root gitignore file * Fix README.md * Update package-lock.json to lockfileVersion 2 * Remove warning in tsconfig.json file * Cosmetic code changes (remove / add empty lines) * Merge CONTRIBUTING file in README and remove run with docker-compose * Fix typo in README * Remove useless nginx.conf * Rename cicd folder in .docker * Remove useless .env.example * Split GitHub actions in CI & PKG pipelines * Add badges in README * Fix badges * Fix English typo * Update README * Update README
- Loading branch information
Showing
15 changed files
with
16,483 additions
and
135 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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,11 +1,11 @@ | ||
# Should only be used with GitHub Actions cicd | ||
# Should only be used with GitHub Actions CI pipeline | ||
# For local, refer to Dockerfile at root of project | ||
|
||
FROM nginx:stable-alpine | ||
|
||
COPY dist/* /usr/share/nginx/html | ||
|
||
# copy staged files | ||
COPY cicd/stage-release/ / | ||
COPY .docker/stage-release/ / | ||
|
||
ENTRYPOINT ["entrypoint.sh"] |
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,47 @@ | ||
# Continuous Integration (Packaging) pipeline | ||
|
||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
workflow_dispatch: {} | ||
|
||
concurrency: | ||
group: "ci" | ||
cancel-in-progress: true | ||
|
||
env: | ||
app_image: hobbyfarm/admin-ui | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
|
||
- name: Setup node_modules cache | ||
id: cache-nodemodules | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
# cache node_modules to improve performance dramatically | ||
path: node_modules | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Build | ||
run: npm run build:prod | ||
|
||
# TODO: lint, sonar, tests | ||
|
||
- name: Create container image | ||
run: | | ||
docker build -f .github/workflows/Dockerfile-ci -t hobbyfarm/admin-ui:${GIT_COMMIT_SHORT_HASH:-dev} . |
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.