Skip to content

Update orca.yml

Update orca.yml #19

Workflow file for this run

name: echo 1.30.1 build
on:
push:
branches:
- '1.30.1_v8.31.1'
env:
GRADLE_OPTS: -Dorg.gradle.daemon=false -Xmx6g -Xms6g
CONTAINER_REGISTRY: quay.io/opsmxpublic
jobs:
build-orca:
runs-on: ubuntu-latest
steps:
- name: Checkout echo repo
uses: actions/checkout@v3
###with:
#repository: opsmx/echo
#ref: refs/heads/master
- uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 17
cache: 'gradle'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Prepare build variables
id: build_variables
run: |
echo ::set-output name=REPO::"ubi8-oes-orca"
echo ::set-output name=VERSION::"1.30.1"
#echo ::set-output name=VERSION::"$(git rev-parse --short HEAD)-$(date --utc +'%Y%m%d%H%M')"
#echo "::set-output name=GITHASH::$(git rev-parse --short HEAD)"
#echo "::set-output name=BUILDDATE::$(date -u +"%Y%m%d%H%M")"
echo ::set-output name=CTAG::"8.31.1-92"
- name: Build
run: ./gradlew --no-daemon orca-web:installDist -x test
- name: Login to Quay
#if: startsWith(github.repository, ‘yugaa22/‘)
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_KEY }}
- name: dockerBuildpush
# Only run this on repositories in the 'spinnaker' org, not on forks.
#if: startsWith(github.repository, ‘yugaa22/‘)
uses: docker/build-push-action@v2
with:
context: .
build-args: |
CUSTOMPLUGIN_RELEASEVERSION=4.0-isd-spin-2024.06.00
CUSTOMPLUGIN_RELEASEORG=opsmx
CUSTOMPLUGIN_RELEASE_VERSION=1.0.1
file: docker/ubi8/Dockerfile
push: true
tags: |
"${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-${{ steps.build_variables.outputs.CTAG }}"
- id: get-build-name
run: |
imageName=${{ env.CONTAINER_REGISTRY }}/${{ steps.build_variables.outputs.REPO }}:${{ steps.build_variables.outputs.VERSION }}-${{ steps.build_variables.outputs.CTAG }}
echo "oes=$imageName" >> $GITHUB_OUTPUT