mirror of
https://github.com/simple-login/app.git
synced 2024-10-01 14:11:31 +02:00
ci: update workflows for local and allow for more folders and domains
This commit is contained in:
parent
91598c0d03
commit
40d7dea982
19
.github/workflows/fork.yml
vendored
Normal file
19
.github/workflows/fork.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
name: Sync Fork
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '*/30 * * * *' # every 30 minutes
|
||||||
|
workflow_dispatch: # on button click
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
sync:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: tgymnich/fork-sync@v1.8
|
||||||
|
with:
|
||||||
|
owner: simple-login
|
||||||
|
repo: app
|
||||||
|
base: master
|
||||||
|
head: master
|
110
.github/workflows/main.yml
vendored
110
.github/workflows/main.yml
vendored
@ -125,7 +125,7 @@ jobs:
|
|||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v4
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: simplelogin/app-ci
|
images: martadams89/sl-app
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
@ -145,15 +145,15 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Create Sentry release
|
#- name: Create Sentry release
|
||||||
uses: getsentry/action-release@v1
|
# uses: getsentry/action-release@v1
|
||||||
env:
|
# env:
|
||||||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
# SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||||
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
# SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
||||||
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
|
# SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
|
||||||
with:
|
# with:
|
||||||
ignore_missing: true
|
# ignore_missing: true
|
||||||
ignore_empty: true
|
# ignore_empty: true
|
||||||
|
|
||||||
- name: Prepare version file
|
- name: Prepare version file
|
||||||
run: |
|
run: |
|
||||||
@ -186,53 +186,53 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Prepare Slack notification contents
|
#- name: Prepare Slack notification contents
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
# if: startsWith(github.ref, 'refs/tags/v')
|
||||||
run: |
|
# run: |
|
||||||
changelog=$(cat << EOH
|
# changelog=$(cat << EOH
|
||||||
${{ steps.build_changelog.outputs.changelog }}
|
# ${{ steps.build_changelog.outputs.changelog }}
|
||||||
EOH
|
# EOH
|
||||||
)
|
# )
|
||||||
messageWithoutNewlines=$(echo "${changelog}" | awk '{printf "%s\\n", $0}')
|
# messageWithoutNewlines=$(echo "${changelog}" | awk '{printf "%s\\n", $0}')
|
||||||
messageWithoutDoubleQuotes=$(echo "${messageWithoutNewlines}" | sed "s/\"/'/g")
|
# messageWithoutDoubleQuotes=$(echo "${messageWithoutNewlines}" | sed "s/\"/'/g")
|
||||||
echo "${messageWithoutDoubleQuotes}"
|
# echo "${messageWithoutDoubleQuotes}"
|
||||||
|
|
||||||
echo "SLACK_CHANGELOG=${messageWithoutDoubleQuotes}" >> $GITHUB_ENV
|
# echo "SLACK_CHANGELOG=${messageWithoutDoubleQuotes}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Post notification to Slack
|
# - name: Post notification to Slack
|
||||||
uses: slackapi/slack-github-action@v1.19.0
|
# uses: slackapi/slack-github-action@v1.19.0
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
# if: startsWith(github.ref, 'refs/tags/v')
|
||||||
with:
|
# with:
|
||||||
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
|
# channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
|
||||||
payload: |
|
# payload: |
|
||||||
{
|
# {
|
||||||
"blocks": [
|
# "blocks": [
|
||||||
{
|
# {
|
||||||
"type": "header",
|
# "type": "header",
|
||||||
"text": {
|
# "text": {
|
||||||
"type": "plain_text",
|
# "type": "plain_text",
|
||||||
"text": "New tag created",
|
# "text": "New tag created",
|
||||||
"emoji": true
|
# "emoji": true
|
||||||
}
|
# }
|
||||||
},
|
# },
|
||||||
{
|
# {
|
||||||
"type": "section",
|
# "type": "section",
|
||||||
"text": {
|
# "text": {
|
||||||
"type": "mrkdwn",
|
# "type": "mrkdwn",
|
||||||
"text": "*Tag: ${{ github.ref_name }}* (${{ github.sha }})"
|
# "text": "*Tag: ${{ github.ref_name }}* (${{ github.sha }})"
|
||||||
}
|
# }
|
||||||
},
|
# },
|
||||||
{
|
# {
|
||||||
"type": "section",
|
# "type": "section",
|
||||||
"text": {
|
# "text": {
|
||||||
"type": "mrkdwn",
|
# "type": "mrkdwn",
|
||||||
"text": "*Changelog:*\n${{ env.SLACK_CHANGELOG }}"
|
# "text": "*Changelog:*\n${{ env.SLACK_CHANGELOG }}"
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
]
|
# ]
|
||||||
}
|
# }
|
||||||
env:
|
# env:
|
||||||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
|
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||||
|
|
||||||
- name: Create GitHub Release
|
- name: Create GitHub Release
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
@ -99,8 +99,8 @@ except Exception:
|
|||||||
MAX_NB_EMAIL_OLD_FREE_PLAN = int(os.environ.get("MAX_NB_EMAIL_OLD_FREE_PLAN", 15))
|
MAX_NB_EMAIL_OLD_FREE_PLAN = int(os.environ.get("MAX_NB_EMAIL_OLD_FREE_PLAN", 15))
|
||||||
|
|
||||||
# maximum number of directory a premium user can create
|
# maximum number of directory a premium user can create
|
||||||
MAX_NB_DIRECTORY = 50
|
MAX_NB_DIRECTORY = 500
|
||||||
MAX_NB_SUBDOMAIN = 5
|
MAX_NB_SUBDOMAIN = 50
|
||||||
|
|
||||||
ENFORCE_SPF = "ENFORCE_SPF" in os.environ
|
ENFORCE_SPF = "ENFORCE_SPF" in os.environ
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user