Skip to content

Commit

Permalink
update versions java
Browse files Browse the repository at this point in the history
  • Loading branch information
Vacxe committed Nov 29, 2024
1 parent 5030531 commit 91cb3a2
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ jobs:
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v4
name: Set up JDK 11
name: Set up JDK 23
with:
distribution: "temurin"
java-version: 11
java-version: 23
cache: gradle
- name: gradle check
run: ./gradlew check jacocoTestReport
Expand Down
33 changes: 26 additions & 7 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
name: Set up JDK 11
name: Set up JDK 23
with:
distribution: "temurin"
java-version: 11
java-version: 23
cache: gradle
- name: Build release tar
run: ./gradlew distTar
Expand All @@ -34,8 +34,8 @@ jobs:
asset_name: google-play-cli.tar
asset_content_type: application/x-tar

docker-build-push:
name: Build and Push Docker image
github-packages-build-push:
name: Build and Push to GitHub Packages
permissions:
contents: read
packages: write
Expand All @@ -56,12 +56,31 @@ jobs:
PACKAGES_WRITE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
USERNAME: ${{ github.actor }}

docker-registry-build-push:
name: Build and Push to Docker Registry
runs-on: ubuntu-latest
needs: [ release-tar ]
steps:
- uses: actions/checkout@v4

- name: Get release information
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Docker Login
run: echo $PACKAGES_WRITE_TOKEN | docker login -u $USERNAME --password-stdin
env:
PACKAGES_WRITE_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
USERNAME: vacxe

- name: Docker Build
run: docker build -t ghcr.io/vacxe/google-play-cli:$VERSION --build-arg="PLAY_CLI_VERSION=$VERSION" .
run: docker build -t vacxe/google-play-cli:$VERSION --build-arg="PLAY_CLI_VERSION=$VERSION" .
env:
VERSION: ${{ steps.get_release.outputs.tag_name }}

- name: Deploy
run: docker push ghcr.io/vacxe/google-play-cli:$VERSION
run: docker push vacxe/google-play-cli:$VERSION
env:
VERSION: ${{ steps.get_release.outputs.tag_name }}
VERSION: ${{ steps.get_release.outputs.tag_name }}
4 changes: 2 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
name: Set up JDK 11
name: Set up JDK 23
with:
distribution: "temurin"
java-version: 11
java-version: 23
cache: gradle
- name: Build release tar
run: ./gradlew distTar
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM adoptopenjdk/openjdk11:jdk-11.0.11_9-alpine-slim
FROM eclipse-temurin:23-jdk

ARG PLAY_CLI_VERSION

Expand Down

0 comments on commit 91cb3a2

Please sign in to comment.