Compare commits
7 commits
v1.0.1-bet
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 4efaa235c7 | |||
| eee3e692e3 | |||
| 3a578df79e | |||
| 0b09b4159c | |||
| 4c742dcf06 | |||
| 0efcb3241a | |||
| 2d0f5e8f27 |
4 changed files with 40 additions and 16 deletions
2
.github/workflows/build-monorepo.yaml
vendored
2
.github/workflows/build-monorepo.yaml
vendored
|
|
@ -30,6 +30,8 @@ jobs:
|
|||
tags: |
|
||||
type=ref,event=branch,branch=dev,suffix=-{{sha}},optional=true
|
||||
type=ref,event=branch,branch=dev,value=dev,optional=true
|
||||
type=match,event=tag,pattern=.*_?(v\d+\.\d+\.\d+(?:-[\w\d.-]+)?),group=1,prefix=,optional=true
|
||||
type=match,event=tag,pattern=.*_?(v\d+\.\d+\.\d+(?:-[\w\d.-]+)?),value=latest,optional=true
|
||||
type=match,event=tag,pattern=.*v(\\d+\\.\\d+\\.\\d+).*,group=1,prefix=v,optional=true
|
||||
|
||||
- name: Print (debug) Docker meta JSON
|
||||
|
|
|
|||
6
.github/workflows/build.yaml
vendored
6
.github/workflows/build.yaml
vendored
|
|
@ -26,10 +26,8 @@ jobs:
|
|||
tags: |
|
||||
type=ref,event=branch,branch=dev,suffix=-{{sha}},optional=true
|
||||
type=ref,event=branch,branch=dev,value=dev,optional=true
|
||||
type=match,event=tag,pattern=v(.*),group=1,prefix=v,optional=true
|
||||
type=match,event=tag,pattern=v(.*),value=latest,optional=true
|
||||
flavor: |
|
||||
latest=false
|
||||
type=match,event=tag,pattern=v(\d+\.\d+\.\d+(?:-[\w\d.-]+)?),group=1,prefix=v,optional=true
|
||||
type=match,event=tag,pattern=v(\d+\.\d+\.\d+(?:-[\w\d.-]+)?),value=latest,optional=true
|
||||
|
||||
- name: Print (debug) Docker meta JSON
|
||||
uses: https://github.com/actions/github-script@v8
|
||||
|
|
|
|||
4
.github/workflows/lint.yaml
vendored
4
.github/workflows/lint.yaml
vendored
|
|
@ -41,6 +41,10 @@ jobs:
|
|||
env:
|
||||
NO_YARN_POSTINSTALL: 1
|
||||
FONTAWESOME_PACKAGE_TOKEN: ${{ secrets.FONTAWESOME_PACKAGE_TOKEN }}
|
||||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
||||
TURBO_API: ${{ vars.TURBO_API }}
|
||||
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
|
||||
TURBO_URL: ${{ vars.TURBO_URL }}
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v5
|
||||
|
|
|
|||
44
README.md
44
README.md
|
|
@ -8,13 +8,31 @@ GitHub (forgejo) pipelines and other CI/CD utilities for the frontends Phoenix T
|
|||
|
||||
## .Github Workflows: Build and push containers
|
||||
|
||||
### Docker / Container build
|
||||
|
||||
Containers are built using dedicated `Dockerfile`s located in the `/docker` directory within each project repository. After the build, the images are pushed to the registry.
|
||||
|
||||
### `Build`
|
||||
### Tagging
|
||||
|
||||
Only tags following the specified patterns will be considered within container tags. Any other patterns will be ignored, ensuring adherence to the established tagging policy.
|
||||
|
||||
#### Standalone
|
||||
|
||||
- v1.0.0
|
||||
- v1.0.0-\<anything\>
|
||||
|
||||
#### Monorepo
|
||||
|
||||
- <project_id>\_v1.0.0
|
||||
- <project_id>\_v1.0.0-\<anything\>
|
||||
|
||||
### Pipelines
|
||||
|
||||
#### `Build`
|
||||
|
||||
A standard single-repository project with a `package.json` file located at the root, managing dependencies for the entire project.
|
||||
|
||||
##### Vars (inherited)
|
||||
###### Vars (inherited)
|
||||
|
||||
Setuped on org or repo level.
|
||||
|
||||
|
|
@ -22,13 +40,13 @@ Setuped on org or repo level.
|
|||
| ------------ | --------------- | -------- |
|
||||
| `IMAGE_PATH` | Image base path | ✓ |
|
||||
|
||||
##### Inputs
|
||||
###### Inputs
|
||||
|
||||
| Key | Description | Required |
|
||||
| ------------------------- | ------------------------------- | -------- |
|
||||
| `PACKAGE_WRITER_USERNAME` | User name of the package writer | ✓ |
|
||||
|
||||
##### Secrets
|
||||
###### Secrets
|
||||
|
||||
Note: Secrets must be explicitly passed to workflows, even if they are defined at the repository or organization level. This is due to the way Forgejo handles secrets in workflows.
|
||||
|
||||
|
|
@ -37,11 +55,11 @@ Note: Secrets must be explicitly passed to workflows, even if they are defined a
|
|||
| `PACKAGE_WRITE_TOKEN` | Accesstoken of the package writer | ✓ |
|
||||
| `FONTAWESOME_PACKAGE_TOKEN` | Fontawesome Pro library token (Only needed if FA in use ) | |
|
||||
|
||||
### `Build-Monorepo`
|
||||
#### `Build-Monorepo`
|
||||
|
||||
A monorepo project based on Turborepo, with individual projects located under the `/apps/<PROJECT_ID>` directory.
|
||||
|
||||
##### Vars (inherited)
|
||||
###### Vars (inherited)
|
||||
|
||||
Setuped on org or repo level.
|
||||
|
||||
|
|
@ -51,14 +69,14 @@ Setuped on org or repo level.
|
|||
| `TURBO_TEAM` | Turbo repo team ID | |
|
||||
| `TURBO_API` | Turbo repo api url | |
|
||||
|
||||
##### Inputs
|
||||
###### Inputs
|
||||
|
||||
| Key | Description | Required |
|
||||
| ------------------------- | ------------------------------- | -------- |
|
||||
| `PACKAGE_WRITER_USERNAME` | User name of the package writer | ✓ |
|
||||
| `PROJECT_ID` | ID of the projcet | ✓ |
|
||||
|
||||
##### Secrets
|
||||
###### Secrets
|
||||
|
||||
Note: Secrets must be explicitly passed to workflows, even if they are defined at the repository or organization level. This is due to the way Forgejo handles secrets in workflows.
|
||||
|
||||
|
|
@ -70,11 +88,13 @@ Note: Secrets must be explicitly passed to workflows, even if they are defined a
|
|||
|
||||
## .Github Workflows: Linting, type checking, code analyzis, dependency tracking
|
||||
|
||||
### `Lint`
|
||||
### Pipelines
|
||||
|
||||
#### `Lint`
|
||||
|
||||
Linting, type checking, sonarqube, dependency tracking, any testing
|
||||
|
||||
##### Vars (inherited)
|
||||
###### Vars (inherited)
|
||||
|
||||
Setuped on org or repo level.
|
||||
|
||||
|
|
@ -84,7 +104,7 @@ Setuped on org or repo level.
|
|||
| `TURBO_API` | Turbo repo api url (only applicable on monorepos) | |
|
||||
| `SONAR_HOST_URL` | Sonarqube Host (required if sonarqube is enabled) | |
|
||||
|
||||
##### Inputs
|
||||
###### Inputs
|
||||
|
||||
| Key | Description | Required |
|
||||
| -------------------- | ---------------------------------------------------------------------------------- | -------- |
|
||||
|
|
@ -95,7 +115,7 @@ Setuped on org or repo level.
|
|||
| `LINT_SCRIPT` | Script which runs eslint; default: `yarn run lint` | |
|
||||
| `CHECK_TYPES_SCRIPT` | Script which runs tsc type checking: `yarn run check-types` | |
|
||||
|
||||
##### Secrets
|
||||
###### Secrets
|
||||
|
||||
Note: Secrets must be explicitly passed to workflows, even if they are defined at the repository or organization level. This is due to the way Forgejo handles secrets in workflows.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue