gplugin/builders

c771c45bb77a
Parents a44819861d07
Children 50f49327871c
Add a dist builder for building the dist tarball...
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Dockerfile.dist Tue Jan 22 23:58:23 2019 -0600
@@ -0,0 +1,6 @@
+FROM gplugin/builders:debian-buster-amd64
+
+MAINTAINER Gary Kramlich <grim@reaperworld.com>
+
+COPY dist/build.sh /
+
--- a/convey.yml Mon Jan 21 22:02:30 2019 -0600
+++ b/convey.yml Tue Jan 22 23:58:23 2019 -0600
@@ -29,6 +29,16 @@
labels:
- COMMIT=${HG_COMMIT}
+ dist:
+ type: docker/build
+ dockerfile: Dockerfile.dist
+ tag: ${REPO}:dist
+ files: dist
+
+ dist-push:
+ type: docker/push
+ image: ${REPO}:dist
+
login:
type: docker/login
server: docker.io
@@ -116,6 +126,15 @@
stages:
- tasks: [import, build]
+ dist:
+ stages:
+ - tasks: [import, dist]
+
+ dist-publish:
+ environment: [DOCKERHUB_USERNAME, DOCKERHUB_PASSWORD]
+ stages:
+ - tasks: [login, dist-push]
+
fedora-28-amd64:
environment: [DISTRO=fedora, VERSION=28, FILES=rpm]
stages:
@@ -141,7 +160,7 @@
- tasks: [import, pvs-studio]
pvs-studio-publish:
- environment: [DOCKERHUB_USERNAME, DOCKERHUB_PASSWORD]
+ environment: [dockerhub_username, dockerhub_password]
stages:
- tasks: [login, pvs-studio-push]
@@ -209,6 +228,7 @@
- alpine-edge-amd64
- debian-stretch-amd64
- debian-buster-amd64
+ - dist
- fedora-28-amd64
- fedora-29-amd64
- opensuse-tumbleweed-amd64
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dist/build.sh Tue Jan 22 23:58:23 2019 -0600
@@ -0,0 +1,29 @@
+#!/bin/sh -ex
+# Copyright (C) 2015-2019 Gary Kramlich <grim@reaperworld.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+cd ${CONVEY_WORKSPACE}
+
+BUILD_DIR="build-dist"
+
+meson ${BUILD_DIR}
+ninja -C ${BUILD_DIR} dist
+EC=${?}
+
+cp -a ${BUILD_DIR}/meson-dist/* ${CONVEY_WORKSPACE}
+
+exit ${?}
+