-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
31 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|