Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaktushose committed Nov 27, 2023
1 parent 1a0310c commit 08a103f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 31 deletions.
17 changes: 0 additions & 17 deletions .github/dependabot.yml

This file was deleted.

33 changes: 23 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,33 @@ name: Deploy

on:
push:
branches: [ master ]
branches: [ rewrite ]
workflow_dispatch:

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- name: Execute build script via ssh
uses: appleboy/ssh-action@master
- name: Build Image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: nplaybot
tags: latest ${{ github.sha }}
containerfiles: |
./Dockerfile
oci: true

- name: Push To ghcr.io
id: push-to-ghcr
uses: redhat-actions/push-to-registry@v2
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
script: nohup bash /home/levelbot/scripts/workflow.sh > /home/levelbot/scripts/nohup.log 2>&1 & tail -f /home/levelbot/scripts/nohup.log &
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ghcr.io/kaktushose/levelbot
username: Kaktushose
password: ${{ github.token }}
extra-args: |
--disable-content-trust
- name: Print image url
run: echo "Image pushed to ${{ steps.push-to-ghcr.outputs.registry-paths }}"
8 changes: 4 additions & 4 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Java CI

on:
push:
branches: [ master, dev ]
branches: [ main, development, rewrite ]
pull_request:
branches: [ master, dev ]
branches: [ main, development, rewrite ]

jobs:
build:
Expand All @@ -13,9 +13,9 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
- name: Set up JDK 21
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 21
- name: Build with Maven
run: mvn -B package --file pom.xml

0 comments on commit 08a103f

Please sign in to comment.