Skip to content

Merge pull request #60 from burmanm/fix_release_scripts #100

Merge pull request #60 from burmanm/fix_release_scripts

Merge pull request #60 from burmanm/fix_release_scripts #100

name: Cass Config Builder Build & Deploy
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_operator_docker:
name: Build Cass Config Builder Docker Image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.sha }}
submodules: true
- uses: actions/checkout@v4
if: github.event_name != 'pull_request'
with:
submodules: true
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'
- name: Login to DockerHub
if: ${{ !env.ACT }}
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Cache Docker layers
uses: actions/cache@v4
id: cache
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
java-version: 1.8
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build with Gradle
run: ./gradlew test
- name: Build docker image
env:
GITHUB_REPO_OWNER: ${{ github.repository_owner }}
run: |
export GITHUB_REPO_URL="https://github.com/${{ github.repository }}"
./scripts/build-push-images.sh
- name: Archive build logs
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: gradle-logs
path: build/reports