mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-13 13:25:18 +00:00
ci: fix build process
This commit is contained in:
25
.github/workflows/docker-release.yml
vendored
25
.github/workflows/docker-release.yml
vendored
@@ -45,28 +45,3 @@ jobs:
|
|||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
- name: Get release
|
|
||||||
id: get_release
|
|
||||||
uses: bruceadams/get-release@v1.3.2
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
|
||||||
|
|
||||||
- name: Attach image to release
|
|
||||||
uses: actions/github-script@v7
|
|
||||||
with:
|
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
script: |
|
|
||||||
const fs = require('fs');
|
|
||||||
const release_id = '${{ steps.get_release.outputs.id }}';
|
|
||||||
const tag_name = '${{ github.ref_name }}';
|
|
||||||
const image_name = 'ghcr.io/${{ github.repository }}:${{ github.ref_name }}';
|
|
||||||
|
|
||||||
await github.rest.repos.updateRelease({
|
|
||||||
owner: context.repo.owner,
|
|
||||||
repo: context.repo.repo,
|
|
||||||
release_id: release_id,
|
|
||||||
body: `Docker image: \`${image_name}\`\n\nAlso available as \`ghcr.io/${{ github.repository }}:latest\``
|
|
||||||
});
|
|
||||||
|
|
||||||
console.log(`Updated release ${release_id} with Docker image information`);
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ COPY docker-entrypoint.sh /usr/local/bin/
|
|||||||
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
||||||
|
|
||||||
# Create directory for SQLite database and set permissions
|
# Create directory for SQLite database and set permissions
|
||||||
RUN mkdir -p /app/data && chown -R node:node /app/data
|
RUN mkdir -p /app/data
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
|
|||||||
24
README.md
24
README.md
@@ -35,7 +35,7 @@ A built-in system of powerful filters allows you to then export transactions wit
|
|||||||
|
|
||||||
> \[!IMPORTANT]
|
> \[!IMPORTANT]
|
||||||
>
|
>
|
||||||
> **Star Us** to receive all release notifications from GitHub without any delay! ⭐️
|
> This project is still at a very early stage. **Star Us** to receive new release notifications from GitHub ⭐️
|
||||||
|
|
||||||
## ✨ Features
|
## ✨ Features
|
||||||
|
|
||||||
@@ -123,12 +123,6 @@ Deploy your own instance of TaxHacker with Vercel in just a few clicks:
|
|||||||
|
|
||||||
For server deployment, we provide a [Docker image](./Dockerfile) and [Docker Compose](./docker-compose.yml) files that makes setting up TaxHacker simple:
|
For server deployment, we provide a [Docker image](./Dockerfile) and [Docker Compose](./docker-compose.yml) files that makes setting up TaxHacker simple:
|
||||||
|
|
||||||
```bash
|
|
||||||
docker run --name taxhacker ghcr.io/vas3k/taxhacker:latest
|
|
||||||
```
|
|
||||||
|
|
||||||
You can also use docker-compose to start everything together:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Clone the repository
|
# Clone the repository
|
||||||
git clone https://github.com/vas3k/TaxHacker.git
|
git clone https://github.com/vas3k/TaxHacker.git
|
||||||
@@ -142,6 +136,22 @@ New docker image is automatically built and published on every new release. You
|
|||||||
|
|
||||||
For more advanced setups, you can adapt Docker Compose configuration to your own needs. The default configuration uses the pre-built image from GHCR, but you can still build locally using the provided [Dockerfile](./Dockerfile) if needed.
|
For more advanced setups, you can adapt Docker Compose configuration to your own needs. The default configuration uses the pre-built image from GHCR, but you can still build locally using the provided [Dockerfile](./Dockerfile) if needed.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
image: ghcr.io/vas3k/taxhacker:latest
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
|
environment:
|
||||||
|
- UPLOAD_PATH=/app/uploads
|
||||||
|
- NODE_ENV=production
|
||||||
|
- DATABASE_URL=file:/app/data/db.sqlite
|
||||||
|
volumes:
|
||||||
|
- ./uploads:/app/uploads
|
||||||
|
- ./data:/app/data
|
||||||
|
restart: unless-stopped
|
||||||
|
```
|
||||||
|
|
||||||
### Environment Variables
|
### Environment Variables
|
||||||
|
|
||||||
Configure TaxHacker to suit your needs with these environment variables:
|
Configure TaxHacker to suit your needs with these environment variables:
|
||||||
|
|||||||
@@ -18,6 +18,3 @@ services:
|
|||||||
options:
|
options:
|
||||||
max-size: "100M"
|
max-size: "100M"
|
||||||
max-file: "3"
|
max-file: "3"
|
||||||
|
|
||||||
volumes:
|
|
||||||
app_data:
|
|
||||||
|
|||||||
@@ -16,6 +16,3 @@ services:
|
|||||||
options:
|
options:
|
||||||
max-size: "100M"
|
max-size: "100M"
|
||||||
max-file: "3"
|
max-file: "3"
|
||||||
|
|
||||||
volumes:
|
|
||||||
app_data:
|
|
||||||
|
|||||||
Reference in New Issue
Block a user