Skip to content

Fix(.github): link CD flows #3

Fix(.github): link CD flows

Fix(.github): link CD flows #3

name: generate docker image, upload to docker hub
on:
push:
branches:
- main
env:
GRADLE_VERSION: 8.3
JAVA_VERSION: '17'
JAVA_DISTRIBUTION: 'temurin'
GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED: true
jobs:
push-image:
runs-on: ubuntu-latest
steps:
- name: Checkout Branch
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRIBUTION }}
- name: Setup Gradle w/ caching
uses: gradle/[email protected]
with:
arguments: clean build -x test -x check
gradle-version: ${{ env.GRADLE_VERSION }}
cache-read-only: true
- name: Login Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
build-args: |
JASYPT_PASSWORD= ${{ secrets.JASYPT_PASSWORD }}
tags: gmlwh124/ajaja:latest