Skip to content

Commit

Permalink
chore(deploy snapshot): deploy runtime snapshots to apache snapshot r…
Browse files Browse the repository at this point in the history
…epo, fixes #432
  • Loading branch information
oscerd committed Feb 14, 2019
1 parent 3d1705e commit 51e4ad9
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 24 deletions.
1 change: 1 addition & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions contributing.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,30 @@ After a successful build, if you're connected to a Docker daemon, you can build
make images
```

[[push-snapshot]]
== Push runtime snapshot

For the Java bits in runtime you can push to the snapshost to the Apache Snapshot repository with:

* `make push-runtime-snapshot`: to push the Java-based runtime snapshot JARs.

In your settings.xml you'll need to have the correct ASF credentials to push.

```
<server>
<id>apache.snapshots.https</id>
<username>username</username>
<password>password</password>
</server>
<server>
<id>apache.releases.https</id>
<username>username</username>
<password>password</password>
</server>
```

Don't forget to first run a `make build-runtime` before pushing the snapshot

[[testing]]
== Testing

Expand Down
54 changes: 31 additions & 23 deletions deploy/resources.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion script/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ build-compile-integration-tests:
build-runtime:
./mvnw clean install -B -f ./runtime/pom.xml

push-runtime-snapshot:
./mvnw deploy -B -f ./runtime/pom.xml

release: clean prepare-release build images-build images-push cross-compile package-examples git-tag publish-base-images

prepare-release:
Expand Down Expand Up @@ -84,4 +87,4 @@ check-integration:
lint:
golangci-lint run

.PHONY: build build-operator build-kamel build-embed-resources build-runtime dep codegen images images-build images-push test check test-integration check-integration clean release prepare-release cross-compile package-examples new-version git-tag publish-base-images increment-snapshot install-minishift
.PHONY: build build-operator build-kamel build-embed-resources build-runtime push-runtime-snapshot dep codegen images images-build images-push test check test-integration check-integration clean release prepare-release cross-compile package-examples new-version git-tag publish-base-images increment-snapshot install-minishift

0 comments on commit 51e4ad9

Please sign in to comment.