Skip to content

Merge pull request #19 from Banana4Life/renovate/configure #76

Merge pull request #19 from Banana4Life/renovate/configure

Merge pull request #19 from Banana4Life/renovate/configure #76

Workflow file for this run

name: CI
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
name: Build and Publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Coursier cache
uses: coursier/cache-action@v6
- name: Build and Publish
env:
JIB_TARGET_IMAGE_USERNAME: ${{ github.actor }}
JIB_TARGET_IMAGE_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: |
sbt -v -Dfile.encoding=UTF-8 jibImageBuild
- name: Deploy
env:
DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
run: |
json="$(jq -c '{"image":{"repository": (.image | split(":")[0]), "tag": (.image | split(":")[1]), digest: .imageDigest}}' < target/jib-image.json)"
curl -X POST \
--fail \
-F "token=$DEPLOY_TOKEN" \
-F "ref=main" \
-F "variables[TARGET]=website" \
-F "variables[IMAGE_VALUES]=$json" \
-F "variables[COMMIT_MESSAGE]=$COMMIT_MESSAGE" \
https://cubyte.dev/api/v4/projects/373/trigger/pipeline