Skip to content

Add Spring Boot Admin pipeline, update SBA, Eureka and Config Server deps #18

Add Spring Boot Admin pipeline, update SBA, Eureka and Config Server deps

Add Spring Boot Admin pipeline, update SBA, Eureka and Config Server deps #18

name: Build Eureka Server
on:
pull_request:
branches:
- main
paths:
- 'eureka-server/**'
push:
branches:
- main
paths:
- 'eureka-server/**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: 'read'
env:
IMAGE_NAME: ${{ github.event_name == 'pull_request' && 'eureka-server-pr' || 'eureka-server' }}
REGISTRY: ${{ vars.DOCKER_REGISTRY }}
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 }} -DirectoryName "eureka-server"
- name: Login to container registry
uses: docker/login-action@v3
with:
registry: "${{ vars.DOCKER_REGISTRY }}"
username: "${{ secrets.DOCKER_USERNAME }}"
password: "${{ secrets.DOCKER_PASSWORD }}"
- name: Push image
run: docker push --all-tags ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}