Skip to content

Build Image

Build Image #1

Workflow file for this run

name: Build Image
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: 'recursive'
- name: Initialization environment
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo timedatectl set-timezone "Asia/Shanghai"
- name: Setup JDK 17
uses: oracle-actions/setup-java@v1
with:
website: oracle.com
release: 17
version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build with Gradle
env:
PUBLISHING_DOCKER_USERNAME: ${{ secrets.PUBLISHING_DOCKER_USERNAME }}
PUBLISHING_DOCKER_PASSWORD: ${{ secrets.PUBLISHING_DOCKER_PASSWORD }}
PUBLISHING_GITHUB_TOKEN: ${{ secrets.PUBLISHING_GITHUB_TOKEN }}
run: |
bash ./gradlew dockerPushImageOfficial
bash ./gradlew githubRelease