Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
prometheus-nginxlog-exporter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
infra
packages
prometheus-nginxlog-exporter
Commits
fedb15ba
Verified
Commit
fedb15ba
authored
3 years ago
by
nd
Browse files
Options
Downloads
Patches
Plain Diff
move script to shared repo
parent
647ced85
No related branches found
No related tags found
No related merge requests found
Pipeline
#8597
passed
3 years ago
Stage: build
Stage: package
Stage: autoupdate
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+4
-3
4 additions, 3 deletions
.gitlab-ci.yml
filter-versions.py
+0
-21
0 additions, 21 deletions
filter-versions.py
with
4 additions
and
24 deletions
.gitlab-ci.yml
+
4
−
3
View file @
fedb15ba
...
@@ -21,12 +21,13 @@ autoupdate:
...
@@ -21,12 +21,13 @@ autoupdate:
script
:
script
:
-
git clone "https://${GITLAB_ACCESS_USER}:${GITLAB_ACCESS_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git" autoupdate-checkout
-
git clone "https://${GITLAB_ACCESS_USER}:${GITLAB_ACCESS_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git" autoupdate-checkout
-
cd autoupdate-checkout
-
cd autoupdate-checkout
-
git push
-
wget https://git.cccv.de/infra/packages/ci-utils/-/raw/main/filter-versions-from-github.py
-
./filter-versions.py
-
chmod 555 filter-versions-from-github.py
-
./filter-versions-from-github.py
-
|
-
|
git config --global user.email "infra+packages-autoupdate@cccv.de"
git config --global user.email "infra+packages-autoupdate@cccv.de"
git config --global user.name "autoupdater"
git config --global user.name "autoupdater"
for version in $(./filter-versions.py); do
for version in $(./filter-versions
-from-github
.py); do
printf "variables:\n UPSTREAM_VERSION: ${version}" > gitlabci-version.yml
printf "variables:\n UPSTREAM_VERSION: ${version}" > gitlabci-version.yml
git commit -m "[autoupdate] Bump version to ${version}" gitlabci-version.yml
git commit -m "[autoupdate] Bump version to ${version}" gitlabci-version.yml
git tag "${version}"
git tag "${version}"
...
...
This diff is collapsed.
Click to expand it.
filter-versions.py
deleted
100755 → 0
+
0
−
21
View file @
647ced85
#!/usr/bin/env python3
import
requests
import
git
githubpath
=
"
martin-helmich/prometheus-nginxlog-exporter
"
repo
=
git
.
Repo
(
'
.
'
)
req
=
requests
.
get
(
f
"
https://api.github.com/repos/
{
githubpath
}
/releases
"
)
releases
=
[
release
[
'
tag_name
'
]
for
release
in
req
.
json
()
]
releases
.
sort
()
for
release
in
releases
:
release_exists
=
False
for
tag
in
repo
.
tags
:
if
tag
.
name
==
release
:
release_exists
=
True
break
if
release_exists
:
continue
print
(
release
)
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