Skip to content

Commit 455293c

Browse files
authored
fix: adding CNAME for gh-pages (apt-releases) (goharbor#826)
Signed-off-by: NucleoFusion <lakshit.singh.mail@gmail.com>
1 parent f84d6bb commit 455293c

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.dagger/apt.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ Description: Harbor CLI — a command-line interface for interacting with your H
6464
EOF`,
6565
})
6666

67+
// CNAME File
68+
container = container.WithExec([]string{
69+
"bash", "-c",
70+
`echo 'harborcli.goharbor.io' > /repo/CNAME`,
71+
})
72+
6773
container = container.
6874
WithWorkdir("/repo").
6975
WithExec([]string{
@@ -79,7 +85,7 @@ EOF`,
7985
git config user.name "github-actions[bot]"
8086
git config user.email "github-actions[bot]@users.noreply.github.com"
8187
82-
git add dists pool
88+
git add dists pool CNAME
8389
8490
git commit -m "Update APT repo for %s" || echo "No changes to commit"
8591
git push origin gh-pages -f

0 commit comments

Comments
 (0)