Skip to content

testing build

testing build #25

Workflow file for this run

name: Branch Build orca
on:
workflow_call:
push:
branches:
- 1.30.1_v8.31.1
env:
GRADLE_OPTS: -Dorg.gradle.daemon=false -Xmx6g -Xms6g
CONTAINER_REGISTRY: quay.io/opsmxpublic
jobs:
branch-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'zulu'
- name: Prepare build variables
id: build_variables
run: |
echo ::set-output name=REPO::ubi8-oes-orca
echo ::set-output name=VERSION::"$(git rev-parse --short HEAD)-$(date --utc +'%Y%m%d%H%M')"
- name: Login to Quay
uses: docker/login-action@v1
# use service account flow defined at: https://github.com/docker/login-action#service-account-based-authentication-1
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Build
run: |
./gradlew --no-daemon -PenableCrossCompilerPlugin=true orca-web:installDist -x test
- name: dockerBuildpush
uses: docker/build-push-action@v2
with:
context: .
build-args: |
CUSTOMPLUGIN_RELEASEVERSION=v4.0.4-rc1
file: docker/ubi8/Dockerfile
push: true
tags: |
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}"