Commit 808b257 1 parent 4797460 commit 808b257 Copy full SHA for 808b257
File tree 1 file changed +59
-0
lines changed
1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CD - experiment/image-viewer (platform.sh)
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ branches :
7
+ - experiment/image-viewer
8
+ paths :
9
+ # Host config
10
+ - ' .plaform/**'
11
+ - ' .platform.app.yaml'
12
+ - ' gunicorn.conf.py'
13
+ # Python config
14
+ - ' poetry.lock'
15
+ - ' pyproject.toml'
16
+ # NPM config
17
+ - ' package.json'
18
+ - ' package-lock.json'
19
+ - ' webpack.config.js'
20
+ # App changes
21
+ - ' config/**'
22
+ - ' sass/**'
23
+ - ' scripts/**'
24
+ - ' templates/**'
25
+ - ' etna/**'
26
+
27
+ jobs :
28
+ ci :
29
+ name : CI
30
+ uses : ./.github/workflows/_tests.yml
31
+ with :
32
+ python-version : ${{ vars.CI_PYTHON_VERSION }}
33
+ poetry-version : ${{ vars.CI_POETRY_VERSION }}
34
+
35
+ deploy :
36
+ runs-on : ubuntu-latest
37
+ needs : ci
38
+ steps :
39
+ - uses : actions/checkout@v3
40
+ - name : Extract branch name
41
+ run : echo "BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
42
+ id : extract_branch
43
+ - uses : axelerant/platformsh-deploy-action@v1
44
+ with :
45
+ project-id : ${{ secrets.PLATFORM_PROJECT_ID }}
46
+ cli-token : ${{ secrets.PLATFORM_CLI_TOKEN }}
47
+ ssh-private-key : ${{ secrets.PLATFORM_SSH_KEY }}
48
+ force-push : true
49
+ environment-name : experiment/image-viewer
50
+
51
+ notify-slack :
52
+ runs-on : ubuntu-latest
53
+ needs : deploy
54
+ steps :
55
+ - uses : actions/checkout@v3
56
+ - uses : rtCamp/action-slack-notify@v2
57
+ env :
58
+ SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
59
+ SLACK_TITLE : " A deployment to experiment/image-viewer is complete"
You can’t perform that action at this time.
0 commit comments