Compare commits
21 Commits
Author | SHA1 | Date | |
---|---|---|---|
f62ba06de8 | |||
9a40f0b796 | |||
6afe850c15 | |||
30644bb14c | |||
1c6bf7db11 | |||
0ea00211eb | |||
638ce50f3e | |||
144b988ee8 | |||
eae69c497c | |||
8a6e8cd71d | |||
fd90a248c9 | |||
d3d075c13d | |||
4d93162c0c | |||
b9ef52c12b | |||
9de990a36c | |||
4a6b8f5ba2 | |||
4be53c6e7c | |||
3facb173c0 | |||
5241113727 | |||
1222bb7fc1 | |||
9cf52bf9b2 |
@ -1,11 +1,13 @@
|
||||
name: deploy
|
||||
name: Keycloak mailcow Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches: [main]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
release:
|
||||
name: Build und Bereitstellung
|
||||
runs-on: act-runner-user
|
||||
steps:
|
||||
- name: Checkout
|
||||
@ -16,11 +18,13 @@ 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 \
|
||||
@ -29,14 +33,15 @@ 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>25.0.0</version.keycloak>
|
||||
<version.springsec>6.3.0</version.springsec>
|
||||
<version.keycloak>26.0.5</version.keycloak>
|
||||
<version.springsec>6.3.4</version.springsec>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
@ -50,7 +50,7 @@
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
<version>2.0.13</version>
|
||||
<version>2.0.16</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.security</groupId>
|
||||
|
Loading…
x
Reference in New Issue
Block a user