Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sqlite-injection
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cylab
play
sqlite-injection
Commits
a9743a16
Commit
a9743a16
authored
2 years ago
by
Thibault Debatty
Browse files
Options
Downloads
Patches
Plain Diff
write and show git tag version
parent
702709b6
No related branches found
No related tags found
No related merge requests found
Pipeline
#10297
passed
2 years ago
Stage: build
Stage: release
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-0
1 addition, 0 deletions
.gitlab-ci.yml
public/VERSION
+1
-0
1 addition, 0 deletions
public/VERSION
public/index.php
+3
-2
3 additions, 2 deletions
public/index.php
with
5 additions
and
2 deletions
.gitlab-ci.yml
+
1
−
0
View file @
a9743a16
...
@@ -46,6 +46,7 @@ build:tagged:
...
@@ -46,6 +46,7 @@ build:tagged:
script
:
script
:
# use previous image as a cache to speedup build process
# use previous image as a cache to speedup build process
-
docker pull $CI_REGISTRY_IMAGE:latest ||
true
-
docker pull $CI_REGISTRY_IMAGE:latest ||
true
-
echo $CI_COMMIT_TAG > public/VERSION
-
docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG --tag $CI_REGISTRY_IMAGE:latest .
-
docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG --tag $CI_REGISTRY_IMAGE:latest .
-
docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
-
docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
-
docker push $CI_REGISTRY_IMAGE:latest
-
docker push $CI_REGISTRY_IMAGE:latest
...
...
This diff is collapsed.
Click to expand it.
public/VERSION
0 → 100644
+
1
−
0
View file @
a9743a16
DEV
This diff is collapsed.
Click to expand it.
public/index.php
+
3
−
2
View file @
a9743a16
...
@@ -124,8 +124,9 @@ $dbh = new PDO("sqlite:" . __DIR__ . "/../db.sqlite");
...
@@ -124,8 +124,9 @@ $dbh = new PDO("sqlite:" . __DIR__ . "/../db.sqlite");
<footer
class=
"footer"
>
<footer
class=
"footer"
>
<div
class=
"container"
>
<div
class=
"container"
>
<span
class=
"text-muted"
>
<span
class=
"text-muted"
>
<a
href=
"https://gitlab.cylab.be/cylab/play/sqlite-injection"
>
SQLite injection
</a>
|
<a
href=
"https://gitlab.cylab.be/cylab/play/sqlite-injection"
>
SQLite injection
</a>
by
<a
href=
"https://cylab.be"
>
cylab.be
</a>
<?php
echo
file_get_contents
(
__DIR__
.
'/VERSION'
)
?>
|
<a
href=
"https://cylab.be"
>
cylab.be
</a>
</span>
</span>
</div>
</div>
</footer>
</footer>
...
...
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