Skip to content

Commit

Permalink
Merge pull request #3114 from statisticsnorway/develop
Browse files Browse the repository at this point in the history
Prodløft
  • Loading branch information
Carl-OW authored Jan 20, 2025
2 parents d29c852 + 22d7c88 commit 5f5d64a
Show file tree
Hide file tree
Showing 49 changed files with 2,098 additions and 1,818 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/deploy_to_prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ jobs:
- name: Send success message to Slack
id: slack_success
if: success()
uses: slackapi/slack-github-action@v1
uses: slackapi/slack-github-action@v2
with:
webhook: ${{ secrets.SLACK_ALERTS_PROD }}
webhook-type: incoming-webhook
# Using Github block kit (https://api.slack.com/reference/block-kit/blocks) to configure the Slack message, see https://docs.github.com/en/actions/learn-github-actions/contexts
# for more information about context variables
payload: |
Expand Down Expand Up @@ -85,14 +87,13 @@ jobs:
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ALERTS_PROD }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
- name: Send failure message to Slack
id: slack_failure
if: failure()
uses: slackapi/slack-github-action@v1
uses: slackapi/slack-github-action@v2
with:
webhook: ${{ secrets.SLACK_MIMIR_UTV }}
webhook-type: incoming-webhook
payload: |
{
"blocks": [
Expand Down Expand Up @@ -126,6 +127,3 @@ jobs:
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_MIMIR_UTV }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
14 changes: 6 additions & 8 deletions .github/workflows/deploy_to_qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ jobs:
- name: Send success message to Slack
id: slack_success
if: success()
uses: slackapi/slack-github-action@v1
uses: slackapi/slack-github-action@v2
with:
webhook: ${{ secrets.SLACK_ALERTS_QA }}
webhook-type: incoming-webhook
# Using Github block kit (https://api.slack.com/reference/block-kit/blocks) to configure the Slack message, see https://docs.github.com/en/actions/learn-github-actions/contexts
# for more information about context variables
payload: |
Expand Down Expand Up @@ -75,14 +77,13 @@ jobs:
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ALERTS_QA }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
- name: Send failure message to Slack
id: slack_failure
if: failure()
uses: slackapi/slack-github-action@v1
uses: slackapi/slack-github-action@v2
with:
webhook: ${{ secrets.SLACK_MIMIR_UTV }}
webhook-type: incoming-webhook
payload: |
{
"blocks": [
Expand Down Expand Up @@ -116,9 +117,6 @@ jobs:
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_MIMIR_UTV }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
mabl_test:
# Run this job after deploy is finished, and only run if deploy succeeded
needs: deploy_to_qa
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/deploy_to_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ jobs:
- name: Send failure message to Slack
id: slack_failure
if: failure()
uses: slackapi/slack-github-action@v1
uses: slackapi/slack-github-action@v2
with:
webhook: ${{ secrets.SLACK_MIMIR_UTV }}
webhook-type: incoming-webhook
payload: |
{
"blocks": [
Expand Down Expand Up @@ -74,9 +76,6 @@ jobs:
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_MIMIR_UTV }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
mabl_test:
# Run this job after deploy is finished, and only run if deploy succeeded
needs: deploy_to_test
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/former_build_deploy_to_prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ jobs:
- name: Send success message to Slack
id: slack_success
if: success()
uses: slackapi/slack-github-action@v1
uses: slackapi/slack-github-action@v2
with:
webhook: ${{ secrets.SLACK_ALERTS_PROD }}
webhook-type: incoming-webhook
# Using Github block kit (https://api.slack.com/reference/block-kit/blocks) to configure the Slack message, see https://docs.github.com/en/actions/learn-github-actions/contexts
# for more information about context variables
payload: |
Expand Down Expand Up @@ -82,14 +84,13 @@ jobs:
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ALERTS_PROD }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
- name: Send failure message to Slack
id: slack_failure
if: failure()
uses: slackapi/slack-github-action@v1
uses: slackapi/slack-github-action@v2
with:
webhook: ${{ secrets.SLACK_MIMIR_UTV }}
webhook-type: incoming-webhook
payload: |
{
"blocks": [
Expand Down Expand Up @@ -123,6 +124,3 @@ jobs:
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_MIMIR_UTV }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
14 changes: 6 additions & 8 deletions .github/workflows/former_build_deploy_to_qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ jobs:
- name: Send success message to Slack
id: slack_success
if: success()
uses: slackapi/slack-github-action@v1
uses: slackapi/slack-github-action@v2
with:
webhook: ${{ secrets.SLACK_ALERTS_QA }}
webhook-type: incoming-webhook
# Using Github block kit (https://api.slack.com/reference/block-kit/blocks) to configure the Slack message, see https://docs.github.com/en/actions/learn-github-actions/contexts
# for more information about context variables
payload: |
Expand Down Expand Up @@ -72,14 +74,13 @@ jobs:
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ALERTS_QA }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
- name: Send failure message to Slack
id: slack_failure
if: failure()
uses: slackapi/slack-github-action@v1
uses: slackapi/slack-github-action@v2
with:
webhook: ${{ secrets.SLACK_MIMIR_UTV }}
webhook-type: incoming-webhook
payload: |
{
"blocks": [
Expand Down Expand Up @@ -113,9 +114,6 @@ jobs:
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_MIMIR_UTV }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
mabl_test:
# Run this job after deploy is finished, and only run if deploy succeeded
needs: deploy-artifact
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import org.apache.tools.ant.taskdefs.condition.Os

plugins {
id("com.github.node-gradle.node") version "7.1.0"
id 'com.enonic.xp.app' version '3.4.0'
id 'com.enonic.xp.app' version '3.5.2'
id 'no.item.xp.codegen' version '2.3.0'
}

Expand Down Expand Up @@ -37,10 +37,10 @@ dependencies {
include "com.enonic.xp:lib-cluster:${xpVersion}"
include "com.enonic.xp:lib-mail:${xpVersion}"
include "com.enonic.xp:lib-scheduler:${xpVersion}"
implementation 'commons-codec:commons-codec:1.17.1'
implementation 'commons-codec:commons-codec:1.17.2'
include "no.item:wsutil-server:2.0.0"
include "com.gravitondigital:featuretogglelib:0.3.0"
include 'org.json:json:20240303'
include 'org.json:json:20250107'
include "com.enonic.lib:lib-react4xp:5.1.1"
include 'com.enonic.lib:lib-text-encoding:2.1.1'
include "com.enonic.xp:lib-value:${xpVersion}"
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Gradle Project settings
projectName = mimir
version = 2.19.0
version = 2.20.0

# XP App values
appDisplayName = Mimir application
appName = mimir
vendorName = SSB
vendorUrl = http://example.com
xpVersion = 7.14.2
xpVersion = 7.14.4

# Settings for publishing to a Maven repo
group =
Loading

0 comments on commit 5f5d64a

Please sign in to comment.