From 4c4390756c25eeecb825ab33b752c6bbdc8c159c Mon Sep 17 00:00:00 2001 From: RouxAntoine Date: Sun, 20 Oct 2024 21:13:55 +0200 Subject: [PATCH] feat: configure grant all on public schema for docker user --- .github/workflows/main.yaml | 7 +++++-- initScript/init.sh | 3 ++- renovate.json | 5 ++++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index a6f192e..361ebf5 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -17,7 +17,8 @@ jobs: container: image: catthehacker/ubuntu:act-22.04 steps: - - uses: RouxAntoine/checkout@v4.1.8 + - name: Checkout repository + uses: https://antoine-roux.tk/projects/actions/checkout@v4.1.8 with: fetch-depth: 0 fetch-tags: false @@ -43,9 +44,11 @@ jobs: linux/amd64 linux/arm64 - - uses: RouxAntoine/auto-changie@v1.0.1 + - name: Auto generate changelog + uses: https://antoine-roux.tk/projects/actions/auto-changie@v1.0.1 - name: Push changelog uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: "${{ vars.SKIP_CI_PREFIX }} Push updated changelog" + file_pattern: "\\.changes/* CHANGELOG.md" diff --git a/initScript/init.sh b/initScript/init.sh index 2e54c4e..7984925 100644 --- a/initScript/init.sh +++ b/initScript/init.sh @@ -6,8 +6,9 @@ app_password="$POSTGRES_APP_PASSWORD" psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL CREATE USER docker WITH PASSWORD '$app_password'; CREATE DATABASE docker; + GRANT ALL PRIVILEGES ON SCHEMA public TO docker; GRANT ALL PRIVILEGES ON DATABASE docker TO docker; - + -- SELECT datname FROM pg_database WHERE datistemplate = false; -- SELECT table_schema,table_name -- FROM information_schema.tables diff --git a/renovate.json b/renovate.json index 02ae055..e5c42bb 100644 --- a/renovate.json +++ b/renovate.json @@ -1,4 +1,7 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "dependencyDashboard": true + "dependencyDashboard": true, + "extends": [ + "local>config/renovate-config" + ] }