Update build to include server
This commit is contained in:
parent
2b46066752
commit
17e289c6f2
@ -3,6 +3,6 @@ set -Eeuo pipefail
|
||||
|
||||
export HOME=$(pwd)
|
||||
|
||||
buildah build -f wwp-repo/container/Containerfile -t quay.io/blasthavers/worldwideportal:latest
|
||||
buildah --root containers build -f wwp-repo/container/Containerfile -t quay.io/blasthavers/worldwideportal:latest
|
||||
echo "$CONTAINER_REGISTRY_KEY" | buildah login --password-stdin --username blasthavers quay.io
|
||||
buildah push quay.io/blasthavers/worldwideportal:latest
|
||||
buildah --root containers push quay.io/blasthavers/worldwideportal:latest
|
||||
|
@ -7,6 +7,8 @@ jobs:
|
||||
plan:
|
||||
- get: wwp-repo
|
||||
trigger: true
|
||||
- get: wwp-server-repo
|
||||
trigger: true
|
||||
- task: build
|
||||
config:
|
||||
platform: linux
|
||||
@ -24,6 +26,22 @@ jobs:
|
||||
- name: wwpapp
|
||||
run:
|
||||
path: wwp-repo/.ci/build
|
||||
- task: build-server
|
||||
config:
|
||||
platform: linux
|
||||
image_resource:
|
||||
type: registry-image
|
||||
source:
|
||||
repository: quay.io/blasthavers/trunkrs
|
||||
inputs:
|
||||
- name: wwp-server-repo
|
||||
caches:
|
||||
- path: target
|
||||
- path: .cargo
|
||||
outputs:
|
||||
- name: wwpserver
|
||||
run:
|
||||
path: wwp-server-repo/.ci/build
|
||||
- task: packcontainer
|
||||
privileged: true
|
||||
config:
|
||||
@ -34,7 +52,10 @@ jobs:
|
||||
repository: quay.io/buildah/stable
|
||||
inputs:
|
||||
- name: wwpapp
|
||||
- name: wwpserver
|
||||
- name: wwp-repo
|
||||
caches:
|
||||
- name: containers
|
||||
params:
|
||||
CONTAINER_REGISTRY_KEY: ((container_registry_key))
|
||||
run:
|
||||
@ -47,3 +68,10 @@ resources:
|
||||
source:
|
||||
uri: https://git.blastmud.org/blasthavers/worldwideportal.git
|
||||
branch: main
|
||||
- name: wwp-server-repo
|
||||
type: git
|
||||
check_every: never
|
||||
webhook_token: ((webhook_token))
|
||||
source:
|
||||
uri: https://git.blastmud.org/blasthavers/worldwideportal-server.git
|
||||
branch: main
|
||||
|
@ -1,2 +1,4 @@
|
||||
FROM debian:bookworm-slim
|
||||
FROM alpine:3.20.3
|
||||
COPY wwpapp /frontendstatic
|
||||
COPY wwpserver/worldwideportal-server /bin/worldwideportal-server
|
||||
ENTRYPOINT ["/bin/worldwideportal-server"]
|
||||
|
Loading…
Reference in New Issue
Block a user