Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
plugin-template
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
Library
plugin-template
Commits
a26403ae
Commit
a26403ae
authored
7 years ago
by
Krzysiek
Browse files
Options
Downloads
Patches
Plain Diff
Zmiana na skrypt wersji w dockerze
parent
aeefef0b
No related branches found
No related tags found
1 merge request
!11
Podbijanie wersji
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+1
-2
1 addition, 2 deletions
.gitlab-ci.yml
with
1 addition
and
2 deletions
.gitlab-ci.yml
+
1
−
2
View file @
a26403ae
...
...
@@ -145,8 +145,7 @@ build to deploy:
script
:
-
php --version
-
ls -l
-
sed -i -- 's/Version
:
[
0-9\.
]
\+/Version
:
${CI_COMMIT_REF_NAME}/g' *.php
# set version from tag
-
sed -i -- "s/$plugin_version = '[0-9\.]\+';/$plugin_version = '${CI_COMMIT_REF_NAME}';/g" *.php
# set version from tag
-
/tmp/set_version.sh ${CI_COMMIT_REF_NAME}
-
rm -rf ${CI_PROJECT_DIR}/release ${CI_PROJECT_DIR}/release.zip /tmp/release
-
mkdir /tmp/release
-
mkdir -p ${CI_PROJECT_DIR}/release/${CI_PROJECT_NAME}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment