diff --git a/.github/workflows/CI-CD.yml b/.github/workflows/CI-CD.yml index 0547a14..99e91d1 100644 --- a/.github/workflows/CI-CD.yml +++ b/.github/workflows/CI-CD.yml @@ -3,7 +3,7 @@ name: CI/CD on: [push] jobs: publish: - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/staging' runs-on: ubuntu-latest steps: - name: Check out the repo diff --git a/README.md b/README.md new file mode 100644 index 0000000..801d854 --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +## Postgres givethio + +We needed a postgres docker image with enabled pg_cron so we wrote and publish this docker image +to use it in https://github.com/Giveth/impact-graph + +### Usage +We assumed that the **PGDATA** is `/var/lib/postgresql/data/pgdata` and the DB name is `givethio`, so if you want to use this image in +docker-compose you can use something like this + +``` + givethio-postgres: + image: ghcr.io/giveth/postgres-givethio:latest + restart: always + environment: + - POSTGRES_DB=givethio + - POSTGRES_USER=yourDesiredUsername + - POSTGRES_PASSWORD=yourDesiredPassword + - PGDATA=/var/lib/postgresql/data/pgdata +``` + + + +