Skip to content

Commit

Permalink
fix: attempt to upload jaqpot-test
Browse files Browse the repository at this point in the history
  • Loading branch information
alarv committed May 30, 2024
1 parent 3e34d43 commit 8825cd7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ on:
branches:
- feat/JAQPOT-101/dockerize-and-publish-to-dockerhub

env:
IMAGE_NAME: upcintua/jaqpot-test

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
Expand All @@ -28,8 +31,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: upcintua/jaqpot-test

images: $IMAGE_NAME

- name: Update version in build.gradle.kts
run: >-
Expand All @@ -40,10 +42,13 @@ jobs:
with:
distribution: 'temurin'
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Build with Gradle
run: ./gradlew build -x test

- name: Build docker image
run: ./gradlew bootBuildImage

Expand All @@ -53,10 +58,7 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Push docker image to DockerHub
run: |
docker load < result
docker push ${IMAGE}:${{ steps.meta.outputs.tags }}
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ tasks.named<BootBuildImage>("bootBuildImage") {
environment.set(
mapOf("BP_JVM_VERSION" to "17")
)
imageName = "upcintua/jaqpot-api"
imageName = "upcintua/jaqpot-test"
}

sourceSets {
Expand Down

0 comments on commit 8825cd7

Please sign in to comment.