Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
On every push to a git branch called "docs-dev", a container tagged with "docs-dev" will be pushed, overwriting the existing image. Commits to main (via PRs) will continue to publish to the "latest" tag.
- Loading branch information
Showing
2 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
#!/bin/sh | ||
|
||
set -eu | ||
|
||
image_tag=$1 | ||
|
||
c=$(buildah from docker.io/caddy:latest) | ||
buildah add $c raku-doc-website.tar.gz /usr/share/caddy | ||
buildah add $c Caddyfile /etc/caddy/Caddyfile | ||
buildah commit --rm $c quay.io/colemanx/raku-doc-website:latest | ||
buildah push quay.io/colemanx/raku-doc-website:latest | ||
buildah commit --rm $c quay.io/colemanx/raku-doc-website:$image_tag | ||
buildah push quay.io/colemanx/raku-doc-website:$image_tag | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters