Skip to content

Commit

Permalink
fix release workflow (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
EddeCCC committed Jul 31, 2023
1 parent 04a42ae commit 4bf60f0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/eumserver_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,19 @@ jobs:
build_and_publish_docker_images:
name: "Build and Push Docker Images"
runs-on: ubuntu-latest
container: openjdk:17-jdk-slim
needs: build_and_release
environment: release
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Install Java 17 # We cannot use the openjdk:17-jdk container, since we also need Docker inside the container
run: sudo apt update && sudo apt install openjdk-17-jdk
- name: Build Docker Images
run: ./gradlew dockerTag -PbuildVersion=${{ github.ref_name }}
run: |
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
./gradlew dockerTag -PbuildVersion=${{ github.ref_name }}
- name: Push Docker Images
run: |
docker login -u ${{ secrets.DOCKER_HUB_USER }} -p ${{ secrets.DOCKER_HUB_PASSWORD }}
Expand Down

0 comments on commit 4bf60f0

Please sign in to comment.