Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Улучшение Dockerfiles для контейнеров php #8

Open
wants to merge 465 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
465 commits
Select commit Hold shift + click to select a range
100b1cd
Unified layout style
ElisDN Feb 8, 2021
4834098
Extracted system layout
ElisDN Feb 8, 2021
475c842
Added reset styles
ElisDN Feb 8, 2021
1f58d7a
Installed router
ElisDN Feb 8, 2021
5d95c6f
Added router
ElisDN Feb 8, 2021
c8e4f37
Added Not Found
ElisDN Feb 8, 2021
52ed5d0
Renamed Join feature
ElisDN Feb 8, 2021
d58de3e
Added wip join page tests
ElisDN Feb 8, 2021
bf25d3d
Added join page
ElisDN Feb 8, 2021
fe82fbe
Added join link
ElisDN Feb 8, 2021
aba628a
Bumped deps
ElisDN Feb 8, 2021
5c74197
Added join form
ElisDN Feb 8, 2021
a710a14
Added wip join tests
ElisDN Feb 8, 2021
094909e
Implemented form steps
ElisDN Feb 8, 2021
1f52007
Added join backend fixture
ElisDN Feb 8, 2021
aa1c985
Added form state
ElisDN Feb 8, 2021
bc0808a
Added CORS headers
ElisDN Feb 8, 2021
350f151
Added frontend API proxying test
ElisDN Feb 8, 2021
79e77db
Added port proxying
ElisDN Feb 8, 2021
58a73f8
Added frontend API proxying
ElisDN Feb 8, 2021
2fc7e33
Implemented join form
ElisDN Feb 8, 2021
490fa98
Added error throwing
ElisDN Feb 8, 2021
323a062
Added API client
ElisDN Feb 8, 2021
733fe22
Extracted violations parsing
ElisDN Feb 9, 2021
9e5a8b5
Extracted error parsing
ElisDN Feb 9, 2021
33f41f0
Extracted response format check
ElisDN Feb 9, 2021
43cd7c6
Added double click protection
ElisDN Mar 6, 2021
2674b9f
Extracted alerts
ElisDN Feb 9, 2021
e589442
Extracted input error
ElisDN Feb 9, 2021
ce02834
Extracted form components
ElisDN Mar 2, 2021
dec73fd
Added join confirmation tests
ElisDN Feb 9, 2021
4ac892f
Implemented join confirmation
ElisDN Feb 9, 2021
9c2f872
Added join success page
ElisDN Feb 9, 2021
83ab975
Enabled join feature
ElisDN Mar 23, 2021
4706e69
Added description field
ElisDN Mar 27, 2021
db7e392
Updated deps
ElisDN Mar 23, 2021
be10789
Updated Xdebug
ElisDN Mar 27, 2021
eda7d7c
Extracted Xdebug version
ElisDN Mar 27, 2021
738b3b7
Migrated from PECL to sources
ElisDN Mar 27, 2021
388593f
Migrated to PHP8
ElisDN Mar 27, 2021
9be5d70
Removed polyfills
ElisDN Mar 27, 2021
c3390dd
Removed ready todo
ElisDN Mar 27, 2021
fe5ba3c
Added new types
ElisDN Mar 27, 2021
708ef1d
Simplified PHPDoc types
ElisDN Mar 27, 2021
2efbe36
Removed superfluous types
ElisDN Mar 27, 2021
3ef70e6
Updated deps
ElisDN Mar 27, 2021
0ba8b1d
Migrated to CS Fixer
ElisDN Mar 27, 2021
227730f
Added union types
ElisDN Mar 27, 2021
f3f5641
Ordered imports
ElisDN Mar 27, 2021
fc44ddb
Disabled superfluous types
ElisDN Mar 27, 2021
9a5f49c
Ordered PHPDoc types
ElisDN Mar 27, 2021
725e1f6
Added strict rules
ElisDN Mar 27, 2021
e9253fd
Fixed semicolon position
ElisDN Mar 27, 2021
4734b44
Removed useless structures
ElisDN Mar 27, 2021
dfd8e15
Added tests rules
ElisDN Mar 27, 2021
c5fb1f3
Migrated to final classes
ElisDN Mar 27, 2021
b109baf
Simplified tests paths
ElisDN Mar 27, 2021
1c342ad
Forced static lambdas
ElisDN Mar 27, 2021
fb48032
Forced global import
ElisDN Mar 27, 2021
a28a47e
Migrated to PhpCsFixer rules set
ElisDN Mar 27, 2021
584a788
Updated deps
ElisDN Apr 15, 2021
d5c653e
Migrated to dev latest
ElisDN Apr 15, 2021
2377fdb
Updated CS Fixer
ElisDN Apr 15, 2021
1842cf3
Migrated to PSR cache
ElisDN Apr 15, 2021
694e766
Updated linters
ElisDN Apr 15, 2021
1b957d1
Protected secrets
ElisDN Apr 15, 2021
4ab2e20
Removed unused interpolation
ElisDN Apr 15, 2021
4face66
Updated deps
ElisDN Apr 15, 2021
dee712b
Upgraded images
ElisDN Apr 15, 2021
cce5141
Added env function
ElisDN Apr 15, 2021
c6ac05d
Installed OAuth server
ElisDN Apr 16, 2021
ea83779
Added OAuth entities
ElisDN Apr 29, 2021
d995d1f
Added OAuth repositories
ElisDN Apr 29, 2021
27c2b47
Added OAuth entities mapping
ElisDN Apr 29, 2021
847b175
Implemented persistence
ElisDN Apr 29, 2021
e92229f
Added JWT encryption key
ElisDN Apr 29, 2021
42e2384
Generated JWT keys files
ElisDN Apr 29, 2021
4456aed
Added OAuth server
ElisDN Apr 29, 2021
a1829fb
Added authorize tests
ElisDN Apr 29, 2021
a81e419
Added HTML response
ElisDN Apr 29, 2021
a7ca569
Moved responses
ElisDN Apr 29, 2021
964c715
Added authorize page
ElisDN Apr 29, 2021
4748252
Extracted Sentry capturer
ElisDN Apr 29, 2021
2a75cb2
Implemented authorize page
ElisDN Apr 29, 2021
8ef5871
Added token action
ElisDN Apr 29, 2021
a5cfd23
Added authorization code grant tests
ElisDN Apr 29, 2021
cef8be2
Added refresh token grant tests
ElisDN Apr 29, 2021
13db1a7
Removed custom error handling
ElisDN Apr 29, 2021
5e12080
Updated deps
ElisDN Apr 29, 2021
97d313d
Added resource server
ElisDN Apr 29, 2021
1218323
Added authenticate middleware
ElisDN Apr 29, 2021
2312250
Added user action
ElisDN Apr 29, 2021
d49bd1b
Added auth identity
ElisDN Apr 29, 2021
fd74150
Added auth identity helper
ElisDN Apr 29, 2021
b63685f
Made auth optional
ElisDN Apr 29, 2021
1c2f036
Updated deps
ElisDN Apr 29, 2021
6bad550
Added JWT role
ElisDN Apr 29, 2021
cedfdf6
Added JWT role parsing
ElisDN Apr 29, 2021
3cd76bc
Added E2E token generation
ElisDN Apr 29, 2021
d7fc498
Extracted token generator
ElisDN Apr 29, 2021
1bbd027
Added logout command
ElisDN May 26, 2021
50ece22
Added expired items clear command
ElisDN May 26, 2021
bd45226
Added Cron runner
ElisDN May 26, 2021
4ad15d0
Added expired items clear job
ElisDN May 26, 2021
2e1c119
Added view translation
ElisDN Jun 7, 2021
e6d33ab
Moved validator
ElisDN Jun 20, 2021
4ca33fb
Renamed mailer envs
ElisDN Jul 25, 2021
7687f8b
Changed Debian version
ElisDN Jul 25, 2021
da5c01e
Changed compose version
ElisDN Jul 25, 2021
af68d01
Rename JWT keys
ElisDN Jul 25, 2021
04f8e7c
Added env file support
ElisDN Jul 25, 2021
1c42fbc
Added development secrets
ElisDN Jul 25, 2021
8f16489
Added testing secrets
ElisDN Jul 25, 2021
80e8eeb
Added production secrets
ElisDN Jul 25, 2021
f351f79
Added PHP CLI user
ElisDN Jul 26, 2021
eda0759
Removed clear command
ElisDN Jul 26, 2021
98cc200
Changed Node user
ElisDN Jul 26, 2021
d43742e
Removed clear command
ElisDN Jul 26, 2021
5f316ca
Changed prune timeout
ElisDN Aug 7, 2021
a4805fa
Renamed cron service
ElisDN Aug 7, 2021
02098c2
Added S3 storage emulator
ElisDN Aug 7, 2021
bf5f972
Added storage host
ElisDN Aug 7, 2021
4e2f15d
Added backup bucket
ElisDN Aug 7, 2021
ecc1787
Added backup service
ElisDN Aug 7, 2021
9d104b1
Added backup command
ElisDN Aug 7, 2021
a406605
Added backup pipeline check
ElisDN Aug 7, 2021
de133df
Added production backup job
ElisDN Aug 7, 2021
33a130e
Chnged codestyle
ElisDN Aug 16, 2021
98795bc
Change testing host
ElisDN Aug 16, 2021
b8cb98d
Migrated to hosts
ElisDN Aug 16, 2021
cccc744
Migrate dev to Traefik
ElisDN Aug 16, 2021
e1563f2
Added Traefik network
ElisDN Aug 16, 2021
0068f1d
Added www redirect
ElisDN Aug 16, 2021
160e962
Migrate testing to Traefik
ElisDN Aug 16, 2021
e443456
Migrate production to Traefik
ElisDN Aug 16, 2021
4ed0b55
Migrate to host network
ElisDN Aug 16, 2021
618787d
Change Ansible Python version
ElisDN Aug 16, 2021
fede7db
Removed Certbot
ElisDN Aug 16, 2021
f3b881a
Removed Certbot tasks
ElisDN Aug 16, 2021
2cb6f63
Migrated to external traefik
ElisDN Aug 16, 2021
acdafa4
Extract provisioning
ElisDN Aug 16, 2021
f2860b1
Updated backend deps
ElisDN Oct 25, 2021
d581667
Update frontend deps
ElisDN Oct 25, 2021
9794c64
Updated cucumber deps
ElisDN Oct 25, 2021
bd4bdca
Installed Symfony Mailer
ElisDN Oct 26, 2021
359ef56
Migrated to new mailer
ElisDN Oct 26, 2021
42e0ca9
Removed SwiftMailer
ElisDN Oct 26, 2021
06a748c
Updated frontend deps
ElisDN Dec 7, 2021
577f5fd
Updated frontend router
ElisDN Dec 7, 2021
241a972
Updated cucumber deps
ElisDN Dec 7, 2021
fa07ff2
Improved E2E tests hooks
ElisDN Dec 7, 2021
59af4e0
Updated Xdebug
ElisDN Dec 7, 2021
8f7f438
Updated API deps
ElisDN Dec 7, 2021
5c6b7da
Updated PHPLint
ElisDN Dec 7, 2021
db47823
Updated cache
ElisDN Dec 7, 2021
3c1deaa
Updated config
ElisDN Dec 7, 2021
d7d9608
Updated mailer
ElisDN Dec 7, 2021
b95e9c9
Updated translation
ElisDN Dec 7, 2021
3ed44e4
Updated validator
ElisDN Dec 7, 2021
67f5fcc
Migrated to validation attributes
ElisDN Dec 7, 2021
5bb5ac6
Migrated to mapping attributes
ElisDN Dec 7, 2021
c4162aa
Removed conflict asserts
ElisDN Dec 7, 2021
8a380d1
Removed annotations CS ruleset
ElisDN Dec 7, 2021
d6847af
Migrated to error level param
ElisDN Mar 30, 2022
2bc065d
Updated deps
ElisDN Mar 30, 2022
49ccbad
Update api deps
ElisDN Mar 30, 2022
4c04c53
Migrated to PHP 8.1
ElisDN Mar 30, 2022
374df84
Removed plugin dependencies
ElisDN Mar 30, 2022
0b37068
Updated cucumber deps
ElisDN Mar 30, 2022
85248b6
Updated Node
ElisDN Mar 30, 2022
a2e846a
Updated frontend deps
ElisDN Mar 30, 2022
a477926
Updated React
ElisDN Mar 30, 2022
3ff3191
Updated deps
ElisDN Apr 14, 2022
ae4b2a6
Fixed dev server websocket
ElisDN Apr 14, 2022
31be4a8
Removed Join feature flag
ElisDN Apr 14, 2022
d4e4e79
Added oauth feature flag
ElisDN Apr 14, 2022
b2bcc86
Added auth provider
ElisDN Apr 14, 2022
72e9a09
Added authorize redirect
ElisDN Apr 14, 2022
318e69d
Added auth token fetching
ElisDN Apr 14, 2022
c005876
Added logout
ElisDN Apr 14, 2022
35c71e0
Added auth synchronization
ElisDN Apr 14, 2022
983ec53
Added token getting
ElisDN Apr 14, 2022
933a7f7
Added token refreshing
ElisDN Apr 14, 2022
34f780a
Optimized refreshing
ElisDN Apr 26, 2022
0c8093a
Migrated to promise
ElisDN Apr 26, 2022
47d44e9
Added E2E authentication
ElisDN Apr 17, 2022
efc7074
Added auth url env variable
ElisDN Apr 19, 2022
fea7981
Upgraded Node
ElisDN Jun 20, 2022
d94ef9a
Updated cucumber deps
ElisDN Jun 20, 2022
638cd21
Installed TypeScript
ElisDN Jun 20, 2022
b1f930c
Init tsconfig
ElisDN Jun 20, 2022
3c55f25
Configured tsconfig
ElisDN Jun 20, 2022
7037a69
Installed ts-node
ElisDN Jun 20, 2022
829e013
Rename world file
ElisDN Jun 20, 2022
0951fe4
Add world type
ElisDN Jun 20, 2022
3f3c5f2
Added TS files lint
ElisDN Jun 20, 2022
b8da541
Added hooks types
ElisDN Jun 20, 2022
b56a770
Added alert types
ElisDN Jun 20, 2022
2d88f56
Added feature types
ElisDN Jun 20, 2022
cca7d19
Added other types
ElisDN Jun 20, 2022
2204aa1
Removed JS support
ElisDN Jun 20, 2022
8abf8be
Updated frontend deps
ElisDN Jun 22, 2022
0f42420
Removed service workers
ElisDN Jun 22, 2022
ddab030
Changed line length
ElisDN Jun 22, 2022
b6ead9e
Installed TypeScript
ElisDN Jun 22, 2022
7d47a8c
Added TS config
ElisDN Jun 22, 2022
a690bec
Migrated to TSX
ElisDN Jun 22, 2022
3497bd4
Added TS files lint
ElisDN Jun 22, 2022
3474aa5
Added features type
ElisDN Jun 29, 2022
09e8ed8
Added features types
ElisDN Jun 29, 2022
590503c
Added alerts types
ElisDN Jun 29, 2022
f14683f
Added layout types
ElisDN Jun 29, 2022
b77deaf
Added form types
ElisDN Jun 29, 2022
ce9540f
Added error types
ElisDN Jun 29, 2022
955ea9a
Added app types
ElisDN Jun 29, 2022
f868357
Added API types
ElisDN Jul 3, 2022
7eb1c72
Added Join types
ElisDN Jul 3, 2022
c6ccb47
Added auth types
ElisDN Jul 3, 2022
6b9dd27
Added home types
ElisDN Jul 3, 2022
1e62acd
Removed prop types
ElisDN Jul 3, 2022
d821909
Added fake auth provider
ElisDN Jul 4, 2022
369c557
Updated cucumber deps
ElisDN Aug 5, 2022
a553141
Updated frontend deps
ElisDN Aug 5, 2022
c3d147e
Updated api deps
ElisDN Aug 5, 2022
dd0f35d
Updated Doctrine ORM
ElisDN Aug 5, 2022
38d39f4
Migrated to native readonly
ElisDN Aug 5, 2022
52afa2c
Migrated to constructor promotion
ElisDN Aug 5, 2022
5a7d355
Installed serializer
ElisDN Aug 5, 2022
c5ceecb
Added normalizers
ElisDN Aug 5, 2022
44464c0
Added custom normalizers support
ElisDN Aug 5, 2022
f25e116
Added serializer aliases
ElisDN Aug 5, 2022
30e5309
Migrated to normalizer and denormalizer
ElisDN Aug 5, 2022
5f6555f
Added invalid format test
ElisDN Aug 5, 2022
4d8c9c1
Improved clear input middleware
ElisDN Aug 5, 2022
dedee50
Added invalid format handling
ElisDN Aug 5, 2022
46459e1
Added invalid format errors
ElisDN Aug 5, 2022
13056a8
Added type errors collecting
ElisDN Aug 5, 2022
a013cc1
Converted type errors to violations
ElisDN Aug 5, 2022
6ef975c
Extracted denormalizer errors middleware
ElisDN Aug 5, 2022
18ee084
Added single and batch handling
ElisDN Aug 5, 2022
99ade27
Added extra attributes checking
ElisDN Aug 5, 2022
06603ec
Refactored middleware
ElisDN Aug 5, 2022
4509f51
Added adapters
ElisDN Aug 5, 2022
cba6e40
Added type template
ElisDN Aug 5, 2022
43ab40c
Other actions
ElisDN Aug 5, 2022
4b19f21
Migrated to command constructor promotion
ElisDN Aug 5, 2022
03715de
Reverted native array
ElisDN Aug 5, 2022
53b0ff6
Migrated to Compose plugin
ElisDN May 16, 2023
fdcbcad
composer installation from docker image
bloodmared Jan 26, 2024
7925767
resolves #7
bloodmared Jan 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/.docker-images-before
/.docker-images-after
239 changes: 239 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@
pipeline {
agent any
options {
timestamps()
}
environment {
CI = 'true'
REGISTRY = credentials('REGISTRY')
IMAGE_TAG = sh(
returnStdout: true,
script: "echo '${env.BUILD_TAG}' | sed 's/%2F/-/g'"
).trim()
GIT_DIFF_BASE_COMMIT = sh(
returnStdout: true,
script: "echo ${env.GIT_PREVIOUS_SUCCESSFUL_COMMIT ?: '`git rev-list HEAD | tail -n 1`'}"
).trim()
GIT_DIFF_API = sh(
returnStdout: true,
script: "git diff --name-only ${env.GIT_DIFF_BASE_COMMIT} HEAD -- api || echo 'all'"
).trim()
GIT_DIFF_FRONTEND = sh(
returnStdout: true,
script: "git diff --name-only ${env.GIT_DIFF_BASE_COMMIT} HEAD -- frontend || echo 'all'"
).trim()
GIT_DIFF_CUCUMBER = sh(
returnStdout: true,
script: "git diff --name-only ${env.GIT_DIFF_BASE_COMMIT} HEAD -- cucumber || echo 'all'"
).trim()
GIT_DIFF_ROOT = sh(
returnStdout: true,
script: "{ git diff --name-only ${env.GIT_DIFF_BASE_COMMIT} HEAD -- . || echo 'all'; } | { grep -v / - || true; }"
).trim()
}
stages {
stage('Init') {
steps {
sh 'touch .docker-images-before'
sh 'make init-ci'
sh 'docker compose images > .docker-images-after'
script {
DOCKER_DIFF = sh(
returnStdout: true,
script: 'diff .docker-images-before .docker-images-after || true'
).trim()
}
}
}
stage('Valid') {
when {
expression { return DOCKER_DIFF || env.GIT_DIFF_ROOT || env.GIT_DIFF_API }
}
steps {
sh 'make api-validate-schema'
}
}
stage('Lint') {
parallel {
stage('API') {
when {
expression { return DOCKER_DIFF || env.GIT_DIFF_ROOT || env.GIT_DIFF_API }
}
steps {
sh 'make api-lint'
}
}
stage('Frontend') {
when {
expression { return DOCKER_DIFF || env.GIT_DIFF_ROOT || env.GIT_DIFF_FRONTEND }
}
steps {
sh 'make frontend-lint'
}
}
stage('Cucumber') {
when {
expression { return DOCKER_DIFF || env.GIT_DIFF_ROOT || env.GIT_DIFF_CUCUMBER }
}
steps {
sh 'make cucumber-lint'
}
}
}
}
stage('Analyze') {
when {
expression { return DOCKER_DIFF || env.GIT_DIFF_ROOT || env.GIT_DIFF_API }
}
steps {
sh 'make api-analyze'
}
}
stage('Backup') {
when {
expression { return DOCKER_DIFF || env.GIT_DIFF_ROOT || env.GIT_DIFF_API }
}
steps {
sh 'make api-backup'
}
}
stage('Test') {
parallel {
stage('API') {
when {
expression { return DOCKER_DIFF || env.GIT_DIFF_ROOT || env.GIT_DIFF_API }
}
steps {
sh 'make api-test'
}
post {
failure {
archiveArtifacts 'api/var/log/**/*'
}
}
}
stage('Front') {
when {
expression { return DOCKER_DIFF || env.GIT_DIFF_ROOT || env.GIT_DIFF_FRONTEND }
}
steps {
sh 'make frontend-test'
}
}
}
}
stage('Down') {
steps {
sh 'make docker-down-clear'
}
}
stage('Build') {
steps {
sh 'make build'
}
}
stage('Testing') {
stages {
stage('Build') {
steps {
sh 'make testing-build'
}
}
stage('Init') {
steps {
sh 'make testing-init'
}
}
stage('Smoke') {
steps {
sh 'make testing-smoke'
}
post {
failure {
archiveArtifacts 'cucumber/var/*'
}
}
}
stage('E2E') {
steps {
sh 'make testing-e2e'
}
post {
failure {
archiveArtifacts 'cucumber/var/*'
}
}
}
stage('Down') {
steps {
sh 'make testing-down-clear'
}
}
}
}
stage('Push') {
when {
branch 'master'
}
steps {
withCredentials([
usernamePassword(
credentialsId: 'REGISTRY_AUTH',
usernameVariable: 'USER',
passwordVariable: 'PASSWORD'
)
]) {
sh 'docker login -u=$USER -p=$PASSWORD $REGISTRY'
}
sh 'make push'
}
}
stage ('Prod') {
when {
branch 'master'
}
steps {
withCredentials([
string(credentialsId: 'PRODUCTION_HOST', variable: 'HOST'),
string(credentialsId: 'PRODUCTION_PORT', variable: 'PORT'),
file(credentialsId: 'API_DB_PASSWORD_FILE', variable: 'API_DB_PASSWORD_FILE'),
string(credentialsId: 'API_MAILER_HOST', variable: 'API_MAILER_HOST'),
string(credentialsId: 'API_MAILER_PORT', variable: 'API_MAILER_PORT'),
string(credentialsId: 'API_MAILER_USERNAME', variable: 'API_MAILER_USERNAME'),
file(credentialsId: 'API_MAILER_PASSWORD_FILE', variable: 'API_MAILER_PASSWORD_FILE'),
string(credentialsId: 'API_MAILER_FROM_EMAIL', variable: 'API_MAILER_FROM_EMAIL'),
file(credentialsId: 'SENTRY_DSN_FILE', variable: 'SENTRY_DSN_FILE'),
file(credentialsId: 'JWT_ENCRYPTION_KEY_FILE', variable: 'JWT_ENCRYPTION_KEY_FILE'),
file(credentialsId: 'JWT_PUBLIC_KEY', variable: 'JWT_PUBLIC_KEY'),
file(credentialsId: 'JWT_PRIVATE_KEY', variable: 'JWT_PRIVATE_KEY'),
string(credentialsId: 'BACKUP_AWS_ACCESS_KEY_ID', variable: 'BACKUP_AWS_ACCESS_KEY_ID'),
file(credentialsId: 'BACKUP_AWS_SECRET_ACCESS_KEY_FILE', variable: 'BACKUP_AWS_SECRET_ACCESS_KEY_FILE'),
string(credentialsId: 'BACKUP_AWS_DEFAULT_REGION', variable: 'BACKUP_AWS_DEFAULT_REGION'),
string(credentialsId: 'BACKUP_S3_ENDPOINT', variable: 'BACKUP_S3_ENDPOINT'),
string(credentialsId: 'BACKUP_S3_BUCKET', variable: 'BACKUP_S3_BUCKET')
]) {
sshagent (credentials: ['PRODUCTION_AUTH']) {
sh 'make deploy'
}
}
}
}
}
post {
success {
sh 'mv -f .docker-images-after .docker-images-before'
}
always {
sh 'make docker-down-clear || true'
sh 'make testing-down-clear || true'
sh 'make deploy-clean || true'
}
failure {
emailext (
subject: "FAIL Job ${env.JOB_NAME} ${env.BUILD_NUMBER}",
body: "Check console output at: ${env.BUILD_URL}/console",
recipientProviders: [[$class: 'DevelopersRecipientProvider']]
)
}
}
}
Loading