Compare commits
No commits in common. "main" and "v1.1.0" have entirely different histories.
@ -1,13 +1,11 @@
|
||||
name: Keycloak mailcow Build
|
||||
name: deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Build und Bereitstellung
|
||||
deploy:
|
||||
runs-on: act-runner-user
|
||||
steps:
|
||||
- name: Checkout
|
||||
@ -18,13 +16,11 @@ jobs:
|
||||
mvn package
|
||||
|
||||
- name: Remove old version
|
||||
if: gitea.event_name == 'push'
|
||||
run: |
|
||||
rm -rf /opt/data/keycloak/providers/spring-security-crypto-*.jar
|
||||
rm -rf /opt/data/keycloak/providers/keycloak-mailcow-*.jar
|
||||
|
||||
- name: Deploy
|
||||
if: gitea.event_name == 'push'
|
||||
run: |
|
||||
export SPRINGSEC_VERSION=$(xmlstarlet sel -N x="http://maven.apache.org/POM/4.0.0" -t -m 'x:project/x:properties/x:version.springsec' -v . pom.xml)
|
||||
curl -sL \
|
||||
@ -33,15 +29,14 @@ jobs:
|
||||
export SPI_VERSION=$(xmlstarlet sel -N x="http://maven.apache.org/POM/4.0.0" -t -m 'x:project/x:version' -v . pom.xml)
|
||||
cp -r target/keycloak-mailcow-$SPI_VERSION.jar /opt/data/keycloak/providers/keycloak-mailcow-$SPI_VERSION.jar
|
||||
|
||||
- name: Restart Keycloak
|
||||
if: gitea.event_name == 'push'
|
||||
run: |
|
||||
curl -X POST -H "X-API-KEY: ${{ secrets.PORTAINER_API_KEY }}" https://docker.cantorgymnasium.de/api/stacks/48/stop\?endpointId\=1
|
||||
curl -X POST -H "X-API-KEY: ${{ secrets.PORTAINER_API_KEY }}" https://docker.cantorgymnasium.de/api/stacks/48/start\?endpointId\=1
|
||||
|
||||
- name: Notification
|
||||
uses: actions/telegram-action@main
|
||||
if: always()
|
||||
with:
|
||||
chat_id: ${{ secrets.TG_CHAT_ID }}
|
||||
token: ${{ secrets.TG_TOKEN }}
|
||||
|
||||
- name: Restart Keycloak
|
||||
run: |
|
||||
curl -X POST -H "X-API-KEY: ${{ secrets.PORTAINER_API_KEY }}" https://docker.cantorgymnasium.de/api/stacks/48/stop\?endpointId\=1
|
||||
curl -X POST -H "X-API-KEY: ${{ secrets.PORTAINER_API_KEY }}" https://docker.cantorgymnasium.de/api/stacks/48/start\?endpointId\=1
|
6
pom.xml
6
pom.xml
@ -12,8 +12,8 @@
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<properties>
|
||||
<version.keycloak>26.0.5</version.keycloak>
|
||||
<version.springsec>6.3.4</version.springsec>
|
||||
<version.keycloak>25.0.0</version.keycloak>
|
||||
<version.springsec>6.3.0</version.springsec>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
@ -50,7 +50,7 @@
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
<version>2.0.16</version>
|
||||
<version>2.0.13</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.security</groupId>
|
||||
|
Loading…
x
Reference in New Issue
Block a user