You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
COMMIT_MESSAGE: "Automated tenant backup by FlashPipe-powered Gitlab CI/CD pipeline"
10
6
TMN_HOST: $DEV_TMN_HOST
11
7
OAUTH_HOST: $DEV_OAUTH_HOST
12
8
OAUTH_CLIENTID: $DEV_CLIENT_ID
13
9
OAUTH_CLIENTSECRET: $DEV_CLIENT_SECRET
14
10
15
-
take_snapshot:
16
-
stage: snapshot
11
+
update_artifact:
12
+
stage: update
17
13
image: engswee/flashpipe:latest
18
14
script:
19
-
- echo "Checking out main branch"
20
-
- git fetch origin main # Fetch the main branch from the remote
21
-
- git checkout main # Checkout the main branch locally in order to be able to push it back afterwards
22
-
- echo "Delete all previously backed-up files and download again the current state of the tenant"
23
-
- git rm -rf ./backup
24
-
- 'echo "Taking a snapshot with the following parameters:"'
25
-
- 'echo "Directory: $ARTIFACT_DIRECTORY"'
26
-
- 'echo "Excluded IDs: $EXCLUDED_IDS"'
27
-
- 'echo "Included IDs: $INCLUDED_IDS"'
28
-
- 'echo "Draft Handling: $DRAFT_HANDLING"'
29
-
- 'echo "Commit Message: $COMMIT_MESSAGE"'
15
+
- echo "Uploading/Updating artifact..."
30
16
- >
31
-
flashpipe snapshot
32
-
--tmn-host $TMN_HOST
33
-
--oauth-host $OAUTH_HOST
34
-
--oauth-clientid $OAUTH_CLIENTID
35
-
--oauth-clientsecret $OAUTH_CLIENTSECRET
36
-
--dir-artifacts $ARTIFACT_DIRECTORY
37
-
--draft-handling "$DRAFT_HANDLING"
38
-
--git-commit-msg "$COMMIT_MESSAGE"
39
-
--ids-exclude "$EXCLUDED_IDS"
40
-
#--ids-include "$INCLUDED_IDS" # EITHER use included or excluded IDs parameter (remove the respective unneeded line from the file or keep it outside of the multi-line string started by ">"!)
41
-
- echo "Push temporary pipeline-local repo to the Git repo"
42
-
- git push https://gitlab-ci-token:$CI_JOB_TOKEN@$CI_SERVER_HOST/$CI_PROJECT_PATH.git main
43
-
rules:
44
-
- if: '$CI_PIPELINE_SOURCE == "schedule"'
45
-
when: always # set to always run if triggered by schedule
46
-
- when: manual # still allow manual triggering, but never trigger by pushed commits.
|[azure-pipelines](https://github.com/engswee/flashpipe-demo/tree/azure-pipelines)| Azure Pipelines | Multiples IFlow deployed to multiple tenants. Unit testing using Maven |
10
-
|[azure-pipelines-single](https://github.com/engswee/flashpipe-demo/tree/azure-pipelines-single)| Azure Pipelines | Single IFlow uploaded and deployed to a single tenant |
11
-
|[github-actions](https://github.com/engswee/flashpipe-demo/tree/github-actions)| GitHub Actions | Multiple artifact types uploaded and deployed to a single tenant. Unit testing with Maven |
12
-
|[github-actions-sync](https://github.com/engswee/flashpipe-demo/tree/github-actions-sync)| GitHub Actions | Sync single package contents between tenant and GitHub repository |
|[azure-pipelines-neo](https://github.com/engswee/flashpipe-demo/tree/azure-pipelines-neo)| Azure Pipelines | Single IFlow uploaded and deployed to a single tenant (OAuth on Neo environment) - Deprecated |
|[github-actions-sync-apim](https://github.com/engswee/flashpipe-demo/tree/github-actions-sync-apim)| GitHub Actions | Sync API Management contents between tenant and GitHub repository |
|[azure-pipelines](https://github.com/engswee/flashpipe-demo/tree/azure-pipelines)| Azure Pipelines | Multiples IFlow deployed to multiple tenants. Unit testing using Maven |
10
+
|[azure-pipelines-single](https://github.com/engswee/flashpipe-demo/tree/azure-pipelines-single)| Azure Pipelines | Single IFlow uploaded and deployed to a single tenant |
11
+
|[github-actions](https://github.com/engswee/flashpipe-demo/tree/github-actions)| GitHub Actions | Multiple artifact types uploaded and deployed to a single tenant. Unit testing with Maven |
12
+
|[gitlab-update-deploy](https://github.com/engswee/flashpipe-demo/tree/gitlab-update-deploy)| GitLab | Example for uploading and deploying a ScriptCollection to a single tenant from a GitLab repository. |
13
+
|[github-actions-sync](https://github.com/engswee/flashpipe-demo/tree/github-actions-sync)| GitHub Actions | Sync single package contents between tenant and GitHub repository |
|[azure-pipelines-neo](https://github.com/engswee/flashpipe-demo/tree/azure-pipelines-neo)| Azure Pipelines | Single IFlow uploaded and deployed to a single tenant (OAuth on Neo environment) - Deprecated |
|[github-actions-sync-apim](https://github.com/engswee/flashpipe-demo/tree/github-actions-sync-apim)| GitHub Actions | Sync API Management contents between tenant and GitHub repository |
0 commit comments