From 42cf3fe806e218aaf5c73517964d3ef49eb09fc2 Mon Sep 17 00:00:00 2001 From: Aaron Dewes Date: Tue, 19 Nov 2024 15:51:36 +0100 Subject: [PATCH] Set up CI --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000..ff61714c7c --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +include: + - project: 'nirvati/ci' + file: '/docker-legacy.yml' + inputs: + username: $HARBOR_USERNAME + password: $HARBOR_PASSWORD + registry: $HARBOR_HOST + project: $HARBOR_PROJECT + container: $CI_PROJECT_NAME + buildx-args: --file package/Dockerfile --build-arg ARCH=$(dpkg --print-architecture) + +docker-build-arm64-container: + before_script: + - apt update && apt install -y curl + - curl -sL https://releases.rancher.com/dapper/latest/dapper-$(uname -s)-$(uname -m) -o /usr/local/bin/dapper + - chmod +x /usr/local/bin/dapper + - /usr/local/bin/dapper -m cp ci + +docker-build-amd64-container: + before_script: + - apt update && apt install -y curl + - curl -sL https://releases.rancher.com/dapper/latest/dapper-$(uname -s)-$(uname -m) -o /usr/local/bin/dapper + - chmod +x /usr/local/bin/dapper + - /usr/local/bin/dapper -m cp ci