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