0.1 #1
6 changed files with 29 additions and 14 deletions
|
@ -29,12 +29,15 @@ steps:
|
||||||
from_secret: nexus_user
|
from_secret: nexus_user
|
||||||
NEXUS_PASSWORD:
|
NEXUS_PASSWORD:
|
||||||
from_secret: nexus_password
|
from_secret: nexus_password
|
||||||
|
VERSION: 0.1.0-snapshot
|
||||||
commands:
|
commands:
|
||||||
- ls -al
|
- ls -al
|
||||||
- cd web/fling
|
- cd web/fling
|
||||||
- npm install && npm run build
|
- npm install && npm run build
|
||||||
- tar czf fling-web-latest.tar.gz build/
|
- tar czf fling-web-$VERSION.tar.gz build/
|
||||||
- curl --user "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file ./fling-web-latest.tar.gz https://nexus.friedl.net/repository/build-artifacts/fling-web-latest.tar.gz
|
- curl --user "$NEXUS_USER:$NEXUS_PASSWORD"
|
||||||
|
--upload-file ./fling-web-$VERSION.tar.gz
|
||||||
|
https://nexus.friedl.net/repository/build-artifacts/fling-web-$VERSION.tar.gz
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
@ -46,7 +49,7 @@ steps:
|
||||||
dockerfile: container/Dockerfile
|
dockerfile: container/Dockerfile
|
||||||
context: ./container
|
context: ./container
|
||||||
repo: arminfriedl/fling
|
repo: arminfriedl/fling
|
||||||
tags: dev
|
tags: 0.1.0-snapshot
|
||||||
|
|
||||||
- name: runservice
|
- name: runservice
|
||||||
image: arminfriedl/fling:dev
|
image: arminfriedl/fling:dev
|
||||||
|
|
1
VERSION
Normal file
1
VERSION
Normal file
|
@ -0,0 +1 @@
|
||||||
|
0.1.0-snapshot
|
20
scripts/release.sh
Executable file
20
scripts/release.sh
Executable file
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SCRIPT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/$(basename "${BASH_SOURCE[0]}")"
|
||||||
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
|
||||||
|
# Go to project root
|
||||||
|
cd ${SCRIPT_DIR}
|
||||||
|
cd ..
|
||||||
|
echo "Working directory: $(pwd)"
|
||||||
|
|
||||||
|
# Determine versions
|
||||||
|
CUR_VERSION=$(cat VERSION)
|
||||||
|
NEW_VERSION=${1}
|
||||||
|
echo "Replacing ${CUR_VERSION} with ${NEW_VERSION}"
|
||||||
|
|
||||||
|
# Replace all versions
|
||||||
|
sed -i "s/${CUR_VERSION^^}/${NEW_VERSION^^}/g" service/fling/pom.xml
|
||||||
|
sed -i "s/${CUR_VERSION,,}/${NEW_VERSION,,}/g" service/fling/src/main/resources/*.yml
|
||||||
|
sed -i "s/${CUR_VERSION,,}/${NEW_VERSION,,}/g" .drone.yml
|
||||||
|
sed -i "s/${CUR_VERSION,,}/${NEW_VERSION,,}/g" VERSION
|
|
@ -11,7 +11,7 @@
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>net.friedl</groupId>
|
<groupId>net.friedl</groupId>
|
||||||
<artifactId>fling</artifactId>
|
<artifactId>fling</artifactId>
|
||||||
<version>0.1-SNAPSHOT</version>
|
<version>0.1.0-SNAPSHOT</version>
|
||||||
<name>fling</name>
|
<name>fling</name>
|
||||||
<description>Simple artifact sharing</description>
|
<description>Simple artifact sharing</description>
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,6 @@ fling:
|
||||||
signing-key: "changeitchangeitchangeitchangeit"
|
signing-key: "changeitchangeitchangeitchangeit"
|
||||||
jwt-expiration: "180000"
|
jwt-expiration: "180000"
|
||||||
api:
|
api:
|
||||||
version: "0"
|
version: "0.1.0-snapshot"
|
||||||
server-url: "http://localhost:8080"
|
server-url: "http://localhost:8080"
|
||||||
server-description: "API server for dev"
|
server-description: "API server for dev"
|
||||||
|
|
|
@ -10,13 +10,4 @@
|
||||||
<password>${env.NEXUS_PASSWORD}</password>
|
<password>${env.NEXUS_PASSWORD}</password>
|
||||||
</server>
|
</server>
|
||||||
</servers>
|
</servers>
|
||||||
|
|
||||||
<mirrors>
|
|
||||||
<mirror>
|
|
||||||
<!--This sends everything else to /public -->
|
|
||||||
<id>nexus</id>
|
|
||||||
<mirrorOf>central</mirrorOf>
|
|
||||||
<url>https://nexus.friedl.net/repository/maven-central/</url>
|
|
||||||
</mirror>
|
|
||||||
</mirrors>
|
|
||||||
</settings>
|
</settings>
|
||||||
|
|
Loading…
Reference in a new issue