Skip to content
This repository has been archived by the owner on Dec 31, 2021. It is now read-only.

Commit

Permalink
Release v0.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
flytreeleft committed Jun 26, 2020
1 parent c08348e commit 23cd378
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 20 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/maven.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: Java CI
name: Deploy Artifacts
on:
push:
branches:
- 'master'
- 'snapshot/**'
- 'releases/**'
paths:
- 'src/**'
- 'pom.xml'
- '.github/workflows/*'
# release:
# types: [published, created]
# push:
# branches:
# paths:
# - 'src/**'
# - 'pom.xml'
# - '.github/workflows/*'
release:
types:
- published
jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -29,4 +27,10 @@ jobs:
GITHUB_USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mvn deploy -Dmaven.test.skip=true --settings .github/workflows/maven-settings.xml --file pom.xml
# Note: disable staging integration (buildsupport-staging.skip=true),
# it will push the artifacts to the nexus's repository which isn't owned by us
mvn clean deploy -X \
-Dbuildsupport-staging.skip=true \
-Dmaven.test.skip=true \
--settings .github/workflows/maven-settings.xml \
--file pom.xml
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ directly, just choose the latest version.
#### 2. Copy all needed jars into nexus system folder

```
PLUGIN_VERSION=0.3.5-SNAPSHOT
PLUGIN_VERSION=0.3.5
jars="org/github/flytreeleft/nexus3-keycloak-plugin/$PLUGIN_VERSION/nexus3-keycloak-plugin-$PLUGIN_VERSION.jar"
for jar in $(echo $jars | sed 's/ /\n/g'); do
Expand Down
10 changes: 5 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ ENV NEXUS_VERSION="3.19.1-01" \
ENV NEXUS_PLUGINS ${NEXUS_HOME}/system

# https://github.com/flytreeleft/nexus3-keycloak-plugin
ENV KEYCLOAK_PLUGIN_VERSION 0.3.4
ENV KEYCLOAK_PLUGIN_RELEASE 0.3.4
ENV KEYCLOAK_PLUGIN /org/github/flytreeleft/nexus3-keycloak-plugin/${KEYCLOAK_PLUGIN_RELEASE}/nexus3-keycloak-plugin-${KEYCLOAK_PLUGIN_VERSION}
ENV KEYCLOAK_PLUGIN_VERSION 0.3.5
ENV KEYCLOAK_PLUGIN_RELEASE v0.3.5
ENV KEYCLOAK_PLUGIN /org/github/flytreeleft/nexus3-keycloak-plugin/${KEYCLOAK_PLUGIN_VERSION}/nexus3-keycloak-plugin-${KEYCLOAK_PLUGIN_VERSION}

USER root

ADD https://github.com/flytreeleft/nexus3-keycloak-plugin/releases/download/v${KEYCLOAK_PLUGIN_RELEASE}/nexus3-keycloak-plugin-${KEYCLOAK_PLUGIN_VERSION}.jar \
ADD https://github.com/flytreeleft/nexus3-keycloak-plugin/releases/download/${KEYCLOAK_PLUGIN_RELEASE}/nexus3-keycloak-plugin-${KEYCLOAK_PLUGIN_VERSION}.jar \
${NEXUS_PLUGINS}${KEYCLOAK_PLUGIN}.jar

RUN chmod 644 ${NEXUS_PLUGINS}/org/github/flytreeleft/nexus3-keycloak-plugin/${KEYCLOAK_PLUGIN_RELEASE}/nexus3-keycloak-plugin-${KEYCLOAK_PLUGIN_VERSION}.jar
RUN chmod 644 ${NEXUS_PLUGINS}${KEYCLOAK_PLUGIN}.jar
RUN echo "reference\:file\:${KEYCLOAK_PLUGIN}.jar = 200" >> ${NEXUS_HOME}/etc/karaf/startup.properties

# setup permissions
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.github.flytreeleft</groupId>
<artifactId>nexus3-keycloak-plugin</artifactId>
<version>0.3.5-SNAPSHOT</version>
<version>0.3.5</version>
<name>${project.groupId}:${project.artifactId}</name>
<packaging>bundle</packaging>

Expand Down

0 comments on commit 23cd378

Please sign in to comment.