Skip to content

Commit

Permalink
new deployment stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
pschichtel committed Oct 6, 2023
1 parent 70963a5 commit 662cb1b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ jobs:
find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true
find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true
find $HOME/.sbt
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: build
steps:
- name: Trigger Deployment
uses: appleboy/[email protected]
with:
host: "https://git.cubyte.org"
token: ${{ secrets.DEPLOY_TOKEN }}
ref: master
project_id: 230
- name: Deploy
env:
DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
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=REF_NAME \
-F "variables[TARGET]=website" \
-F "variables[IMAGE_VALUES]=$json" \
https://cubyte.dev/api/v4/projects/373/trigger/pipeline
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ addSbtPlugin("com.typesafe.sbt" % "sbt-gzip" % "1.0.2")
addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.1.4")

// build
addSbtPlugin("de.gccc.sbt" % "sbt-jib" % "1.0.1")
addSbtPlugin("de.gccc.sbt" % "sbt-jib" % "1.3.6")

0 comments on commit 662cb1b

Please sign in to comment.