Skip to content

Commit

Permalink
take synology url from .env
Browse files Browse the repository at this point in the history
  • Loading branch information
rush42 committed Nov 18, 2024
1 parent 3767099 commit c99397a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/setup-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
source: 'docker-compose.yml, docker-compose.network.yml, configs, .env.example, psql_shell.sh'
target: '/srv'
source: "docker-compose.yml, docker-compose.network.yml, configs, .env.example, psql_shell.sh"
target: "/srv"
overwrite: true

- name: Stop & Start container on Server
Expand Down Expand Up @@ -77,6 +77,7 @@ jobs:
-e "s|^S3_SECRET=.*$|S3_SECRET='${{ secrets.S3_SECRET }}'|" \
-e "s|^S3_REGION=.*$|S3_REGION='${{ secrets.S3_REGION }}'|" \
-e "s|^S3_BUCKET=.*$|S3_BUCKET='${{ secrets.S3_BUCKET }}'|" \
-e "s|^SYNOLOGY_URL=.*$|SYNOLOGY_URL='${{ secrets.SYNOLOGY_URL }}'|" \
-e "s|^SKIP_DOWNLOAD=.*$|SKIP_DOWNLOAD='${{ vars.SKIP_DOWNLOAD }}'|" \
-e "s|^SKIP_UNCHANGED=.*$|SKIP_UNCHANGED='${{ vars.SKIP_UNCHANGED }}'|" \
-e "s|^COMPUTE_DIFFS=.*$|COMPUTE_DIFFS='${{ vars.COMPUTE_DIFFS }}'|" \
Expand Down
3 changes: 1 addition & 2 deletions processing/utils/synology.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { join } from 'path'
import { params } from './parameters'

async function logToSynology(message: string, token: string) {
if (!params.synologyURL) {
return
}
const url = join(params.synologyURL, token)
const url = params.synologyURL + token
const payload = { text: `#${params.environment}: ${message}` }
await fetch(url, {
method: 'POST',
Expand Down

0 comments on commit c99397a

Please sign in to comment.