Publish Docker image #1
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
name: Publish Docker image | |
on: | |
workflow_dispatch: | |
branches: [ main ] | |
jobs: | |
publish-image: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Build Docker container and publish to GitHub Packages | |
env: | |
CI: "" # disable eslint | |
run: | | |
./gradlew jib \ | |
-Djib.to.auth.username=${{ github.actor }} \ | |
-Djib.to.auth.password=${{ github.token }} \ | |
-Djib.from.platforms=linux/amd64,linux/arm64 |