mirror of
https://github.com/VinylDNS/vinyldns
synced 2025-08-29 05:18:08 +00:00
Update build and release scripts
This commit is contained in:
parent
61286c685a
commit
52d08e2cf0
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -21,8 +21,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Import Content Trust Key
|
- name: Build and Test
|
||||||
run: cd build/ && ./assemble_api.jar.sh && ./prepare_release.sh
|
run: cd build/ && ./assemble_api_jar.sh && ./run_all_tests.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Codecov
|
- name: Codecov
|
||||||
|
@ -62,7 +62,7 @@ note you will have to generate a strong passphrase and save it in some password
|
|||||||
password=ignored-must-use-pinentry
|
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")
|
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
|
## 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
|
script will first run functional tests, then kick off `sbt release`, which also runs unit and integration tests before
|
||||||
running the release
|
running the release
|
||||||
|
|
||||||
1. Follow [Docker Content Trust](#docker-content-trust) to setup a notary delegation for yourself
|
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. 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. 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
|
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
|
`SNAPSHOT`, then the docker latest tag won't be applied and the core module will only be published to the sonatype
|
||||||
staging repo._
|
staging repo._
|
||||||
|
5
build/release.sh
Executable file
5
build/release.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user