Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/development' into #39
Browse files Browse the repository at this point in the history
# Conflicts:
#	boot/src/main/java/module-info.java
  • Loading branch information
pveeckhout committed Jun 27, 2023
2 parents dba4c36 + 584a9f8 commit b6b9c0a
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
- main
- development
pull_request:
types:
-closed
branches:
- main
- development
Expand Down Expand Up @@ -44,23 +42,22 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Get version from build.gradle
id: get-version
run: echo "VERSION=$(grep -oP "version\s*=\s*'\K[^']+" build.gradle)" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker
uses: docker/setup-buildx-action@v2
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Execute Gradle bootBuildImage
run: ./gradlew bootBuildImage --imageName=nexus.edpn.io/edpn/backend/modulith:${{ env.VERSION }}
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.NEXUS_USER }}
password: ${{ secrets.NEXUS_PASSWORD }}
registry: nexus.edpn.io

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: nexus.edpn.io/edpn/backend/modulith:${{ env.VERSION }}
- name: Push Docker image to Nexus registry
run: docker push nexus.edpn.io/edpn/backend/modulith:${{ env.VERSION }}

0 comments on commit b6b9c0a

Please sign in to comment.