Turn on CI/CD for api.skia.org. (buildbot)

Adds build_docker_release_ci that's called from CloudBuild.

Also creates a doxygen docker image for building the docs in CloudBuild.

Bug: skia:
Change-Id: I890b498bb3566c1d59db85109a53e559969cce6f
Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/199683
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Joe Gregorio <jcgregorio@google.com>
diff --git a/api/Makefile b/api/Makefile
index 8c87941..7497f80 100644
--- a/api/Makefile
+++ b/api/Makefile
@@ -9,6 +9,11 @@
 	CGO_ENABLED=0 GOOS=linux go install -a ./go/api
 	./build_docker_release
 
+.PHONY: release_ci
+release_ci:
+	CGO_ENABLED=0 GOOS=linux go install -a ./go/api
+	./build_docker_release_ci
+
 push: release skia-public
 	pushk api
 
diff --git a/api/build_docker_release_ci b/api/build_docker_release_ci
new file mode 100755
index 0000000..a11c403
--- /dev/null
+++ b/api/build_docker_release_ci
@@ -0,0 +1,16 @@
+#!/bin/bash
+APPNAME=api
+
+set -x -e
+
+# Copy files into the right locations in ${ROOT}.
+copy_release_files()
+{
+INSTALL="install -D --verbose --backup=none"
+
+${INSTALL} --mode=644 -T ${APPNAME}/Dockerfile    ${ROOT}/Dockerfile
+${INSTALL} --mode=755 -T ${GOPATH}/bin/${APPNAME} ${ROOT}/usr/local/bin/${APPNAME}
+(cd /workspace/__doxygen_staging/html && find . -type f -exec ${INSTALL} "{}" "${ROOT}/usr/local/share/${APPNAME}/docs/{}" \;)
+}
+
+source ../bash/docker_build.sh
diff --git a/kube/build_doxygen_release b/kube/build_doxygen_release
new file mode 100755
index 0000000..284ede7
--- /dev/null
+++ b/kube/build_doxygen_release
@@ -0,0 +1,18 @@
+#!/bin/bash
+# The base Debian image that includes the skia user and group setup.
+set -x -e
+
+APPNAME=doxygen
+
+# Keep in sync with the version of Debian we are depending on, i.e.
+# make this match the tag in basedebian/Dockerfile.
+TAG=testing-slim
+
+# Copy files into the right locations in ${ROOT}.
+copy_release_files()
+{
+INSTALL="install -D --verbose"
+${INSTALL}     --mode=644 -T doxygen/Dockerfile ${ROOT}/Dockerfile
+}
+
+source ../bash/docker_build.sh
diff --git a/kube/doxygen/Dockerfile b/kube/doxygen/Dockerfile
new file mode 100644
index 0000000..25c6431
--- /dev/null
+++ b/kube/doxygen/Dockerfile
@@ -0,0 +1,13 @@
+FROM debian:testing-slim
+
+RUN apt-get update && apt-get upgrade -y && apt-get install -y  \
+  ca-certificates \
+  doxygen \
+  && rm -rf /var/lib/apt/lists/* \
+  && addgroup --gid 2000 skia \
+  && adduser --uid 2000 --gid 2000 skia
+
+USER skia:skia
+
+COPY . /
+