Skip to content

Commit

Permalink
Issue #698 - Feature Request: Build Verification Workflow
Browse files Browse the repository at this point in the history
Signed-off-by: blakep7 <pearsonblake9@gmail.com>
  • Loading branch information
blakep7 committed Aug 18, 2023
1 parent bf3e9f1 commit 791e370
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ env:
jobs:
# This job will build and then push to docker hub
build-push:
# Prevent job from running in forks
if: github.repository_owner == 'open_horizon'

# The type of runner the job will run on
runs-on: ubuntu-20.04

Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/build-verification.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow is simply to verify that the Anax binaries build successfully, to be used for testing in forks
name: Build Verification

on: workflow_dispatch

jobs:
build-verification:
runs-on: ubuntu-20.04

env:
BUILD_NUMBER: ${{ github.run_number }}
IMAGE_VERSION: ''

steps:
# Checkout our Github repo
- name: Checkout Github Repo
uses: actions/checkout@v3

# Setup Scala
# Comes from open source action: https://github.com/coursier/setup-action
- name: Setup Scala
uses: coursier/setup-action@v1

# Configure version variables
- name: Config Version Variables
run: |
VERSION=$(head -n 1 src/main/resources/version.txt)
echo "IMAGE_VERSION="${VERSION}"" >> $GITHUB_ENV
# Compile
- name: Compile
run: |
sbt compile
# Package
- name: Package
run: |
sbt package
docker image ls

0 comments on commit 791e370

Please sign in to comment.