From 4c04880c91cb78b3b0eb7d3830b814c69e9318a6 Mon Sep 17 00:00:00 2001 From: Condorra Date: Tue, 15 Oct 2024 22:28:37 +1100 Subject: [PATCH] Start build of container --- .ci/build | 2 -- .ci/deploy | 9 +++++++++ .concourse.yml | 4 ++-- container/Containerfile | 2 ++ 4 files changed, 13 insertions(+), 4 deletions(-) create mode 100755 .ci/deploy create mode 100644 container/Containerfile diff --git a/.ci/build b/.ci/build index a0f9163..d9c5ebc 100755 --- a/.ci/build +++ b/.ci/build @@ -1,5 +1,3 @@ -#!/bin/bash - #!/bin/bash -e set -Eeuo pipefail diff --git a/.ci/deploy b/.ci/deploy new file mode 100755 index 0000000..39f3167 --- /dev/null +++ b/.ci/deploy @@ -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 diff --git a/.concourse.yml b/.concourse.yml index 5ed58e9..7808c6d 100644 --- a/.concourse.yml +++ b/.concourse.yml @@ -30,12 +30,12 @@ jobs: image_resource: type: registry-image source: - repository: quay.io/blasthavers/deploy-base + repository: quay.io/buildah/stable inputs: - name: wwpapp - name: wwp-repo params: - DEPLOY_KEY: ((deploy_key)) + CONTAINER_REGISTRY_KEY: ((container_registry_key)) run: path: wwp-repo/.ci/deploy resources: diff --git a/container/Containerfile b/container/Containerfile new file mode 100644 index 0000000..e3d6a7b --- /dev/null +++ b/container/Containerfile @@ -0,0 +1,2 @@ +FROM debian:buster-slim +COPY ../../wwpapp /frontendstatic