Skip to content

Commit

Permalink
⬆️ Upgrade server version to 0.0.2-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
heavynimbus committed Jun 1, 2024
1 parent 2822466 commit fb49c19
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/upgrade-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
cache: 'maven'
cache-dependency-path: 'server/pom.xml'

- name: put random number in test file
- name: Retrieve next version
id: next-version
run: |
echo "value=$(./get-next-version.sh)" >> $GITHUB_OUTPUT
Expand All @@ -40,36 +40,37 @@ jobs:
run: |
./set-next-version.sh --pom server/pom.xml
- name: Commit and push new version
uses: stefanzweifel/git-auto-commit-action@v5
- name: Create Tag ${{ steps.next-version.outputs.value }}
uses: rickstaa/action-create-tag@v1
id: "tag_create"
with:
commit_message: "⬆️ Upgrade server version to ${{ steps.next-version.outputs.value }}"
tagging_message: "v${{ steps.next-version.outputs.value }}"
tag: "v${{ steps.next-version.outputs.value }}"
message: "️⬆️ Upgrade server version to ${{ steps.next-version.outputs.value }}"


- name: Build Docker image
- name: Build Docker image ${{ steps.next-version.outputs.value }}
env:
NEXT_VERSION: ${{ steps.next-version.outputs.value }}
run: |
docker build -t heavy-mock-http-server:$NEXT_VERSION server
- name: Push Docker image
- name: Push Docker image ${{ steps.next-version.outputs.value }}
env:
NEXT_VERSION: ${{ steps.next-version.outputs.value }}
run: |
NEXT_VERSION=$(./get-next-version.sh)
docker tag "heavy-mock-http-server:$NEXT_VERSION" "heavynimbus/heavy-mock-http-server:$NEXT_VERSION"
docker push "heavynimbus/heavy-mock-http-server:$NEXT_VERSION"
- name: Set snapshot version
run: |
./set-next-version.sh --pom server/pom.xml --snapshot
- name: put random number in test file
- name: Retrieve snapshot version
id: snapshot-version
run: |
echo "value=$(echo $(./get-next-version.sh)-SNAPSHOT)" >> $GITHUB_OUTPUT
- name: Commit and push snapshot version
- name: Commit and push snapshot version ${{ steps.snapshot-version.outputs.value }}
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "⬆️ Upgrade server version to ${{ steps.snapshot-version.outputs.value }}"
Expand Down
2 changes: 1 addition & 1 deletion server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<groupId>heavynimbus</groupId>
<artifactId>heavy-mock-http-server</artifactId>
<version>0.0.1</version>
<version>0.0.2-SNAPSHOT</version>
<description>
Mock HTTP server for development or testing purposes, with the ability to mock responses based on request
parameters.
Expand Down
2 changes: 1 addition & 1 deletion version.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version.next=0.0.1
version.next=0.0.2

0 comments on commit fb49c19

Please sign in to comment.