Merge pull request #3414 from dokku/dokku-release-changes

Test and release changes
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2019-01-21 22:32:03 -05:00
commit 3285cacc97
11 files changed
+18 -13

No files matched your search

-1
View File
@@ -8,7 +8,6 @@ jobs:
- run: | - run: |
make ci-dependencies make ci-dependencies
- run: | - run: |
./contrib/release build
./tests/ci/setup.sh ./tests/ci/setup.sh
- run: | - run: |
echo 'export DOKKU_SKIP_CLEANUP=true' | sudo tee /home/dokku/.dokkurc/dokku_skip_cleanup echo 'export DOKKU_SKIP_CLEANUP=true' | sudo tee /home/dokku/.dokkurc/dokku_skip_cleanup
+6
View File
@@ -0,0 +1,6 @@
FROM ubuntu:14.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get -y install gcc git build-essential wget ruby-dev ruby1.9.1 lintian rpm help2man man-db
RUN command -v fpm > /dev/null || sudo gem install fpm --no-ri --no-rdoc
@@ -1,4 +1,4 @@
FROM ubuntu:14.04 FROM dokku/build-base:0.0.1
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
@@ -1,4 +1,4 @@
FROM ubuntu:14.04 FROM dokku/build-base:0.0.1
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
@@ -36,7 +36,7 @@ RUN PLUGIN_MAKE_TARGET=${PLUGIN_MAKE_TARGET} \
SKIP_GO_CLEAN=true \ SKIP_GO_CLEAN=true \
make version copyfiles \ make version copyfiles \
&& rm -rf plugins/common/*.go plugins/common/glide* plugins/common/vendor/ \ && rm -rf plugins/common/*.go plugins/common/glide* plugins/common/vendor/ \
&& make deb-herokuish deb-dokku deb-plugn deb-sshcommand deb-sigil deb-dokku-update \ && make deb-dokku deb-plugn deb-sshcommand deb-sigil \
rpm-herokuish rpm-dokku rpm-plugn rpm-sshcommand rpm-sigil rpm-dokku-update rpm-dokku rpm-plugn rpm-sshcommand rpm-sigil
RUN ls -lha /tmp/ RUN ls -lha /tmp/
@@ -1,4 +1,4 @@
FROM ubuntu:14.04 FROM dokku/build-base:0.0.1
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
+1 -1
View File
@@ -49,7 +49,7 @@ fn-build-dokku() {
--build-arg IS_RELEASE="$IS_RELEASE" \ --build-arg IS_RELEASE="$IS_RELEASE" \
--build-arg PLUGIN_MAKE_TARGET="build" \ --build-arg PLUGIN_MAKE_TARGET="build" \
--build-arg GOLANG_VERSION="$GOLANG_VERSION" \ --build-arg GOLANG_VERSION="$GOLANG_VERSION" \
-f "contrib/build.Dockerfile" \ -f "contrib/build-dokku.Dockerfile" \
-t "$NAME" . -t "$NAME" .
return "$?" return "$?"
} }
+1 -1
View File
@@ -32,7 +32,7 @@ fn-build-dokku() {
pushd "$ROOT_DIR" >/dev/null pushd "$ROOT_DIR" >/dev/null
docker build \ docker build \
-f "contrib/update-build.Dockerfile" \ -f "contrib/build-dokku-update.Dockerfile" \
-t dokku-update:build . -t dokku-update:build .
return "$?" return "$?"
} }
+1 -1
View File
@@ -32,7 +32,7 @@ fn-build-dokku() {
pushd "$ROOT_DIR" >/dev/null pushd "$ROOT_DIR" >/dev/null
docker build \ docker build \
-f "contrib/herokuish-build.Dockerfile" \ -f "contrib/build-herokuish.Dockerfile" \
-t herokuish:build . -t herokuish:build .
return "$?" return "$?"
} }
+1 -1
View File
@@ -7,7 +7,7 @@ To propose a release, the following tasks need to be performed:
```shell ```shell
export PACKAGECLOUD_TOKEN=SOME_TOKEN export PACKAGECLOUD_TOKEN=SOME_TOKEN
# supports major/minor/patch/betafish # supports major/minor/patch/betafish
contrib/release contrib/release-dokku
``` ```
> If you are a maintainer and need the PACKAGECLOUD_TOKEN in order to make a release, please contact @josegonzalez to get this information. > If you are a maintainer and need the PACKAGECLOUD_TOKEN in order to make a release, please contact @josegonzalez to get this information.
+2 -2
View File
@@ -239,5 +239,5 @@ test: setup-deploy-tests lint unit-tests deploy-tests
test-ci: test-ci:
@mkdir -p test-results/bats @mkdir -p test-results/bats
@cd tests/unit && echo "executing tests: $(shell cd tests/unit ; circleci tests glob *.bats | circleci tests split --split-by=timings | xargs)" @cd tests/unit && echo "executing tests: $(shell cd tests/unit ; circleci tests glob *.bats | circleci tests split --split-by=timings --timings-type=classname | xargs)"
cd tests/unit && bats --formatter bats-format-junit -e -T -o ../../test-results/bats $(shell cd tests/unit ; circleci tests glob *.bats | circleci tests split --split-by=timings | xargs) cd tests/unit && bats --formatter bats-format-junit -e -T -o ../../test-results/bats $(shell cd tests/unit ; circleci tests glob *.bats | circleci tests split --split-by=timings --timings-type=classname | xargs)
+1 -1
View File
@@ -43,7 +43,7 @@ install_dokku() {
return return
fi fi
"${ROOT_DIR}/contrib/release" build "${ROOT_DIR}/contrib/release-dokku" build
echo "dokku dokku/hostname string dokku.me" | sudo debconf-set-selections echo "dokku dokku/hostname string dokku.me" | sudo debconf-set-selections
echo "dokku dokku/key_file string /root/.ssh/id_rsa.pub" | sudo debconf-set-selections echo "dokku dokku/key_file string /root/.ssh/id_rsa.pub" | sudo debconf-set-selections