Commit 6898122
committed
ci: parametrize build and push for fork portability
Hardcoded references to tecnativa/postgres-autoconf and the upstream
repo prevented forks from building and publishing their own images.
Replace with dynamic values:
- hooks/build reads DOCKER_REPO from environment (with fallback)
- CI uses github.repository_owner for repo and GITHUB_TOKEN for GHCR
- Drop Docker Hub push (requires manual secrets setup)
- Only push on master branch to ghcr.io
This enables any fork to build, test, and publish images to GHCR
without additional secret configuration.1 parent fbffb62 commit 6898122
2 files changed
Lines changed: 8 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
80 | 73 | | |
81 | 74 | | |
82 | | - | |
83 | | - | |
| 75 | + | |
| 76 | + | |
84 | 77 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
0 commit comments