add build.sh
This commit is contained in:
parent
d1d5f93486
commit
7df811beb4
2 changed files with 17 additions and 1 deletions
|
@ -34,7 +34,7 @@ Setting up PassED can be done with docker compose or from source. As the website
|
||||||
```yaml
|
```yaml
|
||||||
services:
|
services:
|
||||||
"passed":
|
"passed":
|
||||||
image: "git.1e99.eu/1e99/passed:latest"
|
image: "git.1e99.eu/1e99/passed:latest" # You can also use the latest commit hash as the tag to fix your image to a version.
|
||||||
volumes:
|
volumes:
|
||||||
- "./passed:/etc/passed"
|
- "./passed:/etc/passed"
|
||||||
environment:
|
environment:
|
||||||
|
|
16
build.sh
Executable file
16
build.sh
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
tag_latest=git.1e99.eu/1e99/passed:latest
|
||||||
|
tag_commit=git.1e99.eu/1e99/passed:$(git rev-parse HEAD)
|
||||||
|
|
||||||
|
# TODO: Figure out other platforms
|
||||||
|
docker image build \
|
||||||
|
--force-rm \
|
||||||
|
--platform linux/amd64 \
|
||||||
|
--tag $tag_latest \
|
||||||
|
--tag $tag_commit \
|
||||||
|
.
|
||||||
|
|
||||||
|
docker image push $tag_latest
|
||||||
|
docker image push $tag_commit
|
Loading…
Reference in a new issue