commit 0d5f327968c0b09dbdd96e12677dc291164396fd parent 9f8a6622485f465538a75a96659df4397b242b5c Author: Devan Carpenter <devan@taler.net> Date: Sat, 17 Feb 2024 09:38:09 -0500 ci: add HEAD build and deployment We only want to deploy the HEAD builds for now. Diffstat:
5 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/contrib/ci/jobs/0-build/build.sh b/contrib/ci/jobs/0-build/build.sh @@ -5,6 +5,3 @@ set -exuo pipefail mkdir -p /artifacts/sandcastle-ng/${CI_COMMIT_REF} # Variable comes from CI environment podman tag taler-base-all:latest taler-base-all:${CI_COMMIT_REF} -podman save \ - -o /artifacts/sandcastle-ng/${CI_COMMIT_REF}/taler-base-all.tar \ - taler-base-all:latest diff --git a/contrib/ci/jobs/1-build-head/build.sh b/contrib/ci/jobs/1-build-head/build.sh @@ -0,0 +1,15 @@ +#!/bin/bash +set -exuo pipefail + +for i in buildconfig/*.tag ; do + echo "master" > "$i" +done + +./sandcastle-build + +mkdir -p /artifacts/sandcastle-ng/${CI_COMMIT_REF} # Variable comes from CI environment +podman tag taler-base-all:latest taler-base-all-head:latest +podman tag taler-base-head:latest taler-base-all-head:${CI_COMMIT_REF} +podman save \ + -o /artifacts/sandcastle-ng/${CI_COMMIT_REF}/taler-base-all-head.tar \ + taler-base-all-head:latest diff --git a/contrib/ci/jobs/1-build-head/job.sh b/contrib/ci/jobs/1-build-head/job.sh @@ -0,0 +1,6 @@ +#!/bin/bash +set -exuo pipefail + +job_dir=$(dirname "${BASH_SOURCE[0]}") + +"${job_dir}"/build.sh diff --git a/contrib/ci/jobs/1-deploy/config.ini b/contrib/ci/jobs/2-deploy-head/config.ini diff --git a/contrib/ci/jobs/1-deploy/job.sh b/contrib/ci/jobs/2-deploy-head/job.sh