Skip to content

Commit

Permalink
chore: fix release config
Browse files Browse the repository at this point in the history
  • Loading branch information
chgl committed Feb 23, 2024
1 parent ee40a70 commit 6c9f831
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 1 deletion.
78 changes: 78 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{
"type": "chore",
"scope": "deps",
"release": "patch"
},
{
"type": "build",
"release": "patch"
}
]
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"presetConfig": {
"types": [
{ "type": "feat", "section": "Features" },
{ "type": "fix", "section": "Bug Fixes" },
{ "type": "perf", "section": "Performance Improvements" },
{ "type": "docs", "section": "Documentation", "hidden": false },
{
"type": "chore",
"section": "Miscellaneous Chores",
"hidden": false
},
{ "type": "build", "section": "Build", "hidden": false },
{ "type": "ci", "section": "CI/CD", "hidden": false }
]
}
}
],
"@semantic-release/github",
[
"semantic-release-replace-plugin",
{
"replacements": [
{
"files": ["README.md"],
"from": "ghcr.io/miracum/pathling-s3-import:v.*",
"to": "ghcr.io/miracum/pathling-s3-import:v${nextRelease.version}",
"results": [
{
"file": "README.md",
"hasChanged": true
}
]
},
{
"files": ["Dockerfile"],
"from": "ARG VERSION=.*",
"to": "ARG VERSION=${nextRelease.version}",
"results": [
{
"file": "Dockerfile",
"hasChanged": true
}
]
}
]
}
],
[
"@semantic-release/git",
{
"assets": ["README.md", "Dockerfile"]
}
]
]
}
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ COPY src/PathlingS3Import/packages.lock.json .
RUN dotnet restore --locked-mode
COPY . .

ARG VERSION=1.0.0
RUN dotnet publish \
-c Release \
-p:Version=${VERSION} \
-o /build/publish \
src/PathlingS3Import/PathlingS3Import.csproj

Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# pathling-s3-import

Tool for automatically [$import'ing]() lists of ndjson FHIR resources from an S3-compatible bucket into a Pathling server.
Tool for automatically [$import'ing](https://pathling.csiro.au/docs/server/operations/import) lists of ndjson FHIR resources from an S3-compatible bucket into a Pathling server.

## Usage

See the help text of the command by simply running:

```sh
docker run --rm -it ghcr.io/miracum/pathling-s3-import:v1.0.0
```

0 comments on commit 6c9f831

Please sign in to comment.