Skip to content

Commit

Permalink
increment version
Browse files Browse the repository at this point in the history
  • Loading branch information
ilkerhalil committed Jun 4, 2023
1 parent 94f0d00 commit a928261
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 46 deletions.
88 changes: 44 additions & 44 deletions .github/workflows/CI_Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
Expand All @@ -25,32 +25,32 @@ jobs:

- name: Get version
run: echo "version=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec) " >> $GITHUB_ENV


- name: Build with Maven
run: mvn -DskipTests -B package --file pom.xml

- name: Maven Install
run: |
export REPLICADB_RELEASE_VERSION=${{ env.version }}
echo ${REPLICADB_RELEASE_VERSION}
mvn clean install -Dmaven.javadoc.skip=true -DskipTests -B -V -P release
cp ./target/ReplicaDB-*.jar .
echo ${REPLICADB_RELEASE_VERSION}
mvn clean install -Dmaven.javadoc.skip=true -DskipTests -B -V -P release
cp ./target/ReplicaDB-*.jar .
mkdir lib
echo ${REPLICADB_RELEASE_VERSION}
cp ./target/lib/* ./lib
echo ${REPLICADB_RELEASE_VERSION}
cp ./target/lib/* ./lib
tar -zcvf ReplicaDB-${REPLICADB_RELEASE_VERSION}.tar.gz ReplicaDB-*.jar README.md lib conf bin LICENSE
zip -r -X ReplicaDB-${REPLICADB_RELEASE_VERSION}.zip ReplicaDB-*.jar README.md lib conf bin LICENSE
ls -lah
ls -lah
- name: Maven Install no-oracle
run: |
export REPLICADB_RELEASE_VERSION=${{ env.version }}
mvn clean install -Dmaven.javadoc.skip=true -DskipTests -B -V -P release-no-oracle
cp ./target/ReplicaDB-*.jar .
cp ./target/ReplicaDB-*.jar .
rm -Rf lib 2>/dev/null
mkdir lib
cp ./target/lib/* ./lib
mkdir lib
cp ./target/lib/* ./lib
tar -zcvf ReplicaDB-${REPLICADB_RELEASE_VERSION}-no-oracle.tar.gz ReplicaDB-*.jar README.md lib conf bin LICENSE
zip -r -X ReplicaDB-${REPLICADB_RELEASE_VERSION}-no-oracle.zip ReplicaDB-*.jar README.md lib conf bin LICENSE
ls -lah
Expand All @@ -66,35 +66,35 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: osalvador/replicadb:${{ env.version }}, osalvador/replicadb:latest
build-args: REPLICADB_RELEASE_VERSION=${{ env.version }}

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: Containerfile
push: ${{ github.event_name != 'pull_request' }}
tags: osalvador/replicadb:ubi8-${{ env.version }}, osalvador/replicadb:ubi8-latest
build-args: REPLICADB_RELEASE_VERSION=${{ env.version }}




# - name: Login to DockerHub
# if: github.event_name != 'pull_request'
# uses: docker/login-action@v1
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}

# - name: Build and push
# uses: docker/build-push-action@v2
# with:
# context: .
# file: Dockerfile
# push: ${{ github.event_name != 'pull_request' }}
# tags: osalvador/replicadb:${{ env.version }}, osalvador/replicadb:latest
# build-args: REPLICADB_RELEASE_VERSION=${{ env.version }}

# - name: Build and push
# uses: docker/build-push-action@v2
# with:
# context: .
# file: Containerfile
# push: ${{ github.event_name != 'pull_request' }}
# tags: osalvador/replicadb:ubi8-${{ env.version }}, osalvador/replicadb:ubi8-latest
# build-args: REPLICADB_RELEASE_VERSION=${{ env.version }}




4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

<groupId>org.replicadb</groupId>
<artifactId>ReplicaDB</artifactId>
<version>0.15.0</version>
<version>0.15.3</version>

<name>ReplicaDB</name>
<url>https://github.com/osalvador/ReplicaDB</url>
<url>https://github.com/ilkerhalil/ReplicaDB</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down

0 comments on commit a928261

Please sign in to comment.