-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update config & eureka servers, align dockerfiles and add GHA
- Loading branch information
Showing
29 changed files
with
279 additions
and
445 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Build Config Server | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'config-server/**' | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'config-server/**' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: 'read' | ||
|
||
env: | ||
IMAGE_NAME: config-server | ||
REGISTRY: ${{ github.event_name == 'pull_request' && vars.DOCKER_REGISTRY || 'steeltoeoss' }} | ||
|
||
jobs: | ||
build-push: | ||
name: Build and push image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Build Image | ||
run: ./build.ps1 -Name ${{ env.IMAGE_NAME }} -Registry ${{ env.REGISTRY }} | ||
|
||
- name: Login to private container registry | ||
if: ${{ github.event_name == 'pull_request' }} | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: "${{ vars.DOCKER_REGISTRY }}" | ||
username: "${{ secrets.DOCKER_USERNAME }}" | ||
password: "${{ secrets.DOCKER_PASSWORD }}" | ||
|
||
|
||
- name: Login to Docker Hub | ||
if: ${{ github.event_name != 'pull_request' }} | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Push image | ||
run: docker push --all-tags ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Build Eureka Server | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'eureka-server/**' | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'eureka-server/**' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: 'read' | ||
|
||
env: | ||
IMAGE_NAME: eureka-server | ||
REGISTRY: ${{ github.event_name == 'pull_request' && vars.DOCKER_REGISTRY || 'steeltoeoss' }} | ||
|
||
jobs: | ||
build-push: | ||
name: Build and push image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Build Image | ||
run: ./build.ps1 -Name ${{ env.IMAGE_NAME }} -Registry ${{ env.REGISTRY }} | ||
|
||
- name: Login to private container registry | ||
if: ${{ github.event_name == 'pull_request' }} | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: "${{ vars.DOCKER_REGISTRY }}" | ||
username: "${{ secrets.DOCKER_USERNAME }}" | ||
password: "${{ secrets.DOCKER_PASSWORD }}" | ||
|
||
|
||
- name: Login to Docker Hub | ||
if: ${{ github.event_name != 'pull_request' }} | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Push image | ||
run: docker push --all-tags ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-t config-server:4.1 -t config-server:4 -t config-server:latest |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
4.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
--- a/build.gradle 2020-09-14 16:02:18.000000000 -0400 | ||
+++ b/build.gradle 2020-09-14 16:27:55.000000000 -0400 | ||
--- configserver/build.gradle 2024-02-21 09:39:40.000000000 -0600 | ||
+++ configserver/build.gradle 2024-02-21 11:03:17.615054116 -0600 | ||
@@ -5,7 +5,7 @@ | ||
} | ||
|
||
group = 'io.steeltoe.docker' | ||
-version = '0.0.1-SNAPSHOT' | ||
+version = '2.2.5' | ||
sourceCompatibility = '11' | ||
+version = '4.1.0' | ||
|
||
repositories { | ||
java { | ||
sourceCompatibility = '17' |
Oops, something went wrong.