-
Notifications
You must be signed in to change notification settings - Fork 0
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
5 changed files
with
99 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
## Adjust as needed with your values | ||
|
||
export BW_SESSION=$(bw unlock --raw) | ||
export TWITCH_CLIENT_ID=$(bw get username twitch-exporter) | ||
export TWITCH_CLIENT_SECRET=$(bw get password twitch-exporter) | ||
export TWITCH_CHANNEL_NAME=javagrunt | ||
export TWITCH_CLIENT_REDIRECT_URL=http://localhost:8080 | ||
export TWITCH_ACCESS_TOKEN=$(bw get password twitch-exporter-token) | ||
export TWITCH_ACCESS_TOKEN=$(bw get password twitch-access-token) |
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 |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: multi-arch-builder | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
env: | ||
IMAGE_NAME: dashaun/com.javagrunt.service.twitch | ||
|
||
jobs: | ||
build-mac: | ||
runs-on: macos-14 | ||
steps: | ||
#Login to DockerHub | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: dashaun | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Install JDK | ||
uses: sfesenko/setup-sdkman@v1 | ||
with: | ||
deps: java:23.1.2.r21-nik | ||
- name: Checkout Main | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
#Build Image | ||
- name: Build Image | ||
run: ./mvnw -Pnative spring-boot:build-image | ||
#Deploy the image to the Docker registry | ||
- name: Push Images to Docker Registry | ||
run: docker push -a $IMAGE_NAME | ||
build-ubuntu: | ||
runs-on: ubuntu-latest | ||
steps: | ||
#Login to DockerHub | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: dashaun | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Install JDK | ||
uses: sfesenko/setup-sdkman@v1 | ||
with: | ||
deps: java:23.1.2.r21-nik | ||
- name: Checkout Main | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
#Build Image | ||
- name: Build Image | ||
run: ./mvnw -Pnative spring-boot:build-image | ||
#Deploy the image to the Docker registry | ||
- name: Push Images to Docker Registry | ||
run: docker push -a $IMAGE_NAME | ||
manifest: | ||
needs: [build-ubuntu,build-mac] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: dashaun | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: create-manifest | ||
run: | | ||
docker manifest create $IMAGE_NAME:$GITHUB_REF_NAME --amend $IMAGE_NAME:$GITHUB_REF_NAME-x86_64 --amend $IMAGE_NAME:$GITHUB_REF_NAME-aarch_64 | ||
docker manifest push $IMAGE_NAME:$GITHUB_REF_NAME | ||
docker manifest create $IMAGE_NAME:latest --amend $IMAGE_NAME:$GITHUB_REF_NAME-x86_64 --amend $IMAGE_NAME:$GITHUB_REF_NAME-aarch_64 | ||
docker manifest push $IMAGE_NAME:latest |
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,3 +1,3 @@ | ||
# Enable auto-env through the sdkman_auto_env config | ||
# Add key=value pairs of SDKs to use below | ||
java=21.0.1-graalce | ||
java=23.1.2.r21-nik |
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