Skip to content

Build

Build #1794

Workflow file for this run

name: Build
on:
push:
pull_request:
schedule:
- cron: '0 4 * * *'
jobs:
build:
name: Build & Deploy
runs-on: ubuntu-latest
timeout-minutes: 15
services:
schemata:
image: vlingo/xoom-schemata:latest
ports:
- "9019:9019"
env:
XOOM_SCHEMATA_PORT: 9019
XOOM_ENV: dev
steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'zulu'
cache: 'maven'
- name: Build with Maven
run: mvn --batch-mode --update-snapshots clean package -e -Pdefault,extended
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Notify discord
if: always() && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && github.repository_owner == 'vlingo'
uses: 'Ilshidur/[email protected]'
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
DISCORD_USERNAME: Bob the Builder
DISCORD_EMBEDS: '[{"title":"Build ${{ job.status }}", "description":"[${{ github.repository }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})","author": { "icon_url": "https://avatars.githubusercontent.com/${{ github.actor }}", "name": "${{ github.actor }}", "url": "${{ github.server_url }}/${{ github.actor }}"},"color":"${{ job.status == ''success'' && ''65280'' || ''16711680'' }}"}]'
- name: Cleanup
run: rm -rf ~/.m2/repository/io/vlingo