Start build of container

This commit is contained in:
Condorra 2024-10-15 22:28:37 +11:00
parent dafb3cbeb1
commit 4c04880c91
4 changed files with 13 additions and 4 deletions

View File

@ -1,5 +1,3 @@
#!/bin/bash
#!/bin/bash -e #!/bin/bash -e
set -Eeuo pipefail set -Eeuo pipefail

9
.ci/deploy Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash -e
set -Eeuo pipefail
export HOME=$(pwd)
cd wwp-repo/container
buildah build -f 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

View File

@ -30,12 +30,12 @@ jobs:
image_resource: image_resource:
type: registry-image type: registry-image
source: source:
repository: quay.io/blasthavers/deploy-base repository: quay.io/buildah/stable
inputs: inputs:
- name: wwpapp - name: wwpapp
- name: wwp-repo - name: wwp-repo
params: params:
DEPLOY_KEY: ((deploy_key)) CONTAINER_REGISTRY_KEY: ((container_registry_key))
run: run:
path: wwp-repo/.ci/deploy path: wwp-repo/.ci/deploy
resources: resources:

2
container/Containerfile Normal file
View File

@ -0,0 +1,2 @@
FROM debian:buster-slim
COPY ../../wwpapp /frontendstatic