Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
Deprecate Jave 8 and Java 11
  • Loading branch information
madpah authored Aug 12, 2024
1 parent ce66ead commit 1fd45ac
Showing 1 changed file with 2 additions and 29 deletions.
31 changes: 2 additions & 29 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,41 +27,14 @@ jobs:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}

- name: Build and push Java 8
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
platforms: linux/arm64,linux/amd64
push: true
tags: sonatypecommunity/nexus3:latest , sonatypecommunity/nexus3:${{ env.NXRM_VERSION }}

- name: Build and push Java 11
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.java11
platforms: linux/arm64,linux/amd64
push: true
tags: sonatypecommunity/nexus3:${{ env.NXRM_VERSION }}-java11

- name: Build and push Java 17
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.java17
platforms: linux/arm64,linux/amd64
push: true
tags: sonatypecommunity/nexus3:${{ env.NXRM_VERSION }}-java17

- name: Build and push Java 11 (alpine)
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.alpine.java11
platforms: linux/arm64,linux/amd64
push: true
tags: sonatypecommunity/nexus3:${{ env.NXRM_VERSION }}-java11-alpine
tags: sonatypecommunity/nexus3:latest , sonatypecommunity/nexus3:${{ env.NXRM_VERSION }} , sonatypecommunity/nexus3:${{ env.NXRM_VERSION }}-java17

- name: Build and push Java 17 (alpine)
uses: docker/build-push-action@v5
Expand All @@ -70,4 +43,4 @@ jobs:
file: ./Dockerfile.alpine.java17
platforms: linux/arm64,linux/amd64
push: true
tags: sonatypecommunity/nexus3:${{ env.NXRM_VERSION }}-java17-alpine
tags: sonatypecommunity/nexus3:${{ env.NXRM_VERSION }}-java17-alpine, sonatypecommunity/nexus3:${{ env.NXRM_VERSION }}-alpine

0 comments on commit 1fd45ac

Please sign in to comment.