Compare commits

..

No commits in common. "main" and "v1.1.0" have entirely different histories.
main ... v1.1.0

2 changed files with 11 additions and 16 deletions

@ -1,13 +1,11 @@
name: Keycloak mailcow Build name: deploy
on: on:
push: push:
branches: [main] branches: [ main ]
pull_request:
jobs: jobs:
release: deploy:
name: Build und Bereitstellung
runs-on: act-runner-user runs-on: act-runner-user
steps: steps:
- name: Checkout - name: Checkout
@ -18,13 +16,11 @@ jobs:
mvn package mvn package
- name: Remove old version - name: Remove old version
if: gitea.event_name == 'push'
run: | run: |
rm -rf /opt/data/keycloak/providers/spring-security-crypto-*.jar rm -rf /opt/data/keycloak/providers/spring-security-crypto-*.jar
rm -rf /opt/data/keycloak/providers/keycloak-mailcow-*.jar rm -rf /opt/data/keycloak/providers/keycloak-mailcow-*.jar
- name: Deploy - name: Deploy
if: gitea.event_name == 'push'
run: | 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) 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 \ 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) 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 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 - name: Notification
uses: actions/telegram-action@main uses: actions/telegram-action@main
if: always() if: always()
with: with:
chat_id: ${{ secrets.TG_CHAT_ID }} chat_id: ${{ secrets.TG_CHAT_ID }}
token: ${{ secrets.TG_TOKEN }} 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

@ -12,8 +12,8 @@
<packaging>jar</packaging> <packaging>jar</packaging>
<properties> <properties>
<version.keycloak>26.0.5</version.keycloak> <version.keycloak>25.0.0</version.keycloak>
<version.springsec>6.3.4</version.springsec> <version.springsec>6.3.0</version.springsec>
</properties> </properties>
<dependencies> <dependencies>
@ -50,7 +50,7 @@
<dependency> <dependency>
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId> <artifactId>slf4j-api</artifactId>
<version>2.0.16</version> <version>2.0.13</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.security</groupId> <groupId>org.springframework.security</groupId>