Skip to content

Commit

Permalink
Test Docker Hub login
Browse files Browse the repository at this point in the history
  • Loading branch information
mraible committed Jan 13, 2024
1 parent a330e38 commit d0dc631
Showing 1 changed file with 4 additions and 61 deletions.
65 changes: 4 additions & 61 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,65 +14,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
java-version: '21'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
- run: |
echo "GRAALVM_HOME: $GRAALVM_HOME"
echo "JAVA_HOME: $JAVA_HOME"
java --version
- name: Build Micronaut project
run: |
cd micronaut
./gradlew dockerBuildNative
docker tag app:latest mraible/micronaut-reactive:latest
shell: bash

- name: Build Quarkus project
run: |
cd quarkus
./gradlew build -Dquarkus.package.type=native -Dquarkus.native.container-build=true
docker build -f src/main/docker/Dockerfile.native -t quarkus .
docker tag quarkus:latest mraible/quarkus-reactive:latest
shell: bash

- name: Build Spring Boot project
run: |
cd spring-boot
./gradlew bootBuildImage --imageName=spring-boot
docker tag spring-boot:latest mraible/spring-boot-reactive:latest
shell: bash

- name: Build Helidon project
run: |
cd helidon
docker build -t helidon -f Dockerfile.native .
docker tag helidon:latest mraible/helidon-reactive:latest
shell: bash

- name: Login to DockerHub
run: docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Publish Micronaut Reactive Docker image to DockerHub
run: |
docker push mraible/micronaut-reactive:latest
shell: bash

- name: Publish Quarkus Reactive Docker image to DockerHub
run: |
docker push mraible/quarkus-reactive:latest
shell: bash

- name: Publish Spring Boot WebFlux Docker image to DockerHub
run: |
docker push mraible/spring-boot-reactive:latest
shell: bash

- name: Publish Helidon SE Docker image to DockerHub
run: |
docker push mraible/helidon-reactive:latest
shell: bash
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

0 comments on commit d0dc631

Please sign in to comment.