2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-08-22 02:02:14 +00:00

Update build and release scripts

This commit is contained in:
Ryan Emerle 2021-10-27 14:09:40 -04:00
parent 61286c685a
commit 52d08e2cf0
No known key found for this signature in database
GPG Key ID: C0D34C592AED41CE
4 changed files with 10 additions and 5 deletions

View File

@ -21,8 +21,8 @@ jobs:
with:
fetch-depth: 0
- name: Import Content Trust Key
run: cd build/ && ./assemble_api.jar.sh && ./prepare_release.sh
- name: Build and Test
run: cd build/ && ./assemble_api_jar.sh && ./run_all_tests.sh
shell: bash
- name: Codecov

View File

@ -62,7 +62,7 @@ note you will have to generate a strong passphrase and save it in some password
password=ignored-must-use-pinentry
```
1. Add credenial configuration to global sbt setting in `~/.sbt/1.0/credential.sbt` with the content
1. Add credential configuration to global sbt setting in `~/.sbt/1.0/credential.sbt` with the content
```
credentials += Credentials(Path.userHome / ".sbt" / "1.0" / "vinyldns-gpg-credentials")
@ -70,14 +70,14 @@ note you will have to generate a strong passphrase and save it in some password
## Release Process
We are using sbt-release to run our release steps and auto-bump the version in `version.sbt`. The `bin/release.sh`
We are using sbt-release to run our release steps and auto-bump the version in `version.sbt`. The `build/release.sh`
script will first run functional tests, then kick off `sbt release`, which also runs unit and integration tests before
running the release
1. Follow [Docker Content Trust](#docker-content-trust) to setup a notary delegation for yourself
1. Follow [Sonatype Credentials](#sonatype-credentials) to setup the sonatype pgp signing key on your local
1. Make sure you're logged in to Docker with `docker login`
1. Run `utils/release.sh` _Note: the arg "skip-tests" will skip unit, integration and functional testing before a release_
1. Run `build/release.sh`
1. You will be asked to confirm the version which originally comes from `version.sbt`. _NOTE: if the version ends with
`SNAPSHOT`, then the docker latest tag won't be applied and the core module will only be published to the sonatype
staging repo._

5
build/release.sh Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail
DIR=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
docker run -it --rm -e RUN_SERVICES=none -v "${DIR}/../:/build" vinyldns/build:base-build /bin/bash