Skip to content

Commit

Permalink
Set up jib differently
Browse files Browse the repository at this point in the history
  • Loading branch information
DonRobo committed Jul 7, 2024
1 parent 63c799f commit 1c4b776
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
GPR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REF: ${{ github.ref }}

- name: Log in to Docker registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Publish container images
run: ./gradlew jib -Djib.serialize=true --image=ghcr.io/home-former:${{ github.sha }}
run: ./gradlew jib
env:
GPR_USER: ${{ github.actor }}
GPR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 7 additions & 0 deletions web/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,11 @@ jib {
// }
}
}
to {
image = "ghcr.io/DonRobo/home-former"
auth {
username = project.findProperty("gpr.user") as String? ?: System.getenv("GH_USER")
password = project.findProperty("gpr.key") as String? ?: System.getenv("GH_TOKEN")
}
}
}

0 comments on commit 1c4b776

Please sign in to comment.