Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Keresett a Feri
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Réthelyi Bálint
Keresett a Feri
Commits
05824a5f
Commit
05824a5f
authored
3 years ago
by
Tóth Miklós Tibor
Browse files
Options
Downloads
Patches
Plain Diff
fix order
parent
db6fce04
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#8921
passed
3 years ago
Stage: build
Stage: docker
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
data/data.go
+4
-8
4 additions, 8 deletions
data/data.go
k8s/values.yaml
+1
-1
1 addition, 1 deletion
k8s/values.yaml
stations.yaml
+8
-0
8 additions, 0 deletions
stations.yaml
with
14 additions
and
10 deletions
.gitlab-ci.yml
+
1
−
1
View file @
05824a5f
image
:
alpine
image
:
alpine
variables
:
variables
:
VERSION
:
v2.
6
VERSION
:
v2.
7
stages
:
stages
:
-
build
-
build
...
...
This diff is collapsed.
Click to expand it.
data/data.go
+
4
−
8
View file @
05824a5f
...
@@ -18,9 +18,11 @@ type Station struct {
...
@@ -18,9 +18,11 @@ type Station struct {
type
File
struct
{
type
File
struct
{
Stations
map
[
string
]
*
Station
Stations
map
[
string
]
*
Station
Stories
map
[
int
]
string
Stories
map
[
int
]
string
Order
[]
string
}
}
var
Stations
map
[
string
]
*
Station
var
Stations
map
[
string
]
*
Station
var
Order
[]
string
func
ReadFile
()
{
func
ReadFile
()
{
b
,
err
:=
ioutil
.
ReadFile
(
"stations.yaml"
)
b
,
err
:=
ioutil
.
ReadFile
(
"stations.yaml"
)
...
@@ -35,6 +37,7 @@ func ReadFile() {
...
@@ -35,6 +37,7 @@ func ReadFile() {
}
}
Stations
=
file
.
Stations
Stations
=
file
.
Stations
Order
=
file
.
Order
for
key
,
value
:=
range
Stations
{
for
key
,
value
:=
range
Stations
{
value
.
Id
=
key
value
.
Id
=
key
...
@@ -42,12 +45,5 @@ func ReadFile() {
...
@@ -42,12 +45,5 @@ func ReadFile() {
}
}
func
CreateNewRoute
()
[]
string
{
func
CreateNewRoute
()
[]
string
{
stationIds
:=
make
([]
string
,
len
(
Stations
))
return
Order
i
:=
0
for
k
:=
range
Stations
{
stationIds
[
i
]
=
k
i
++
}
return
stationIds
}
}
This diff is collapsed.
Click to expand it.
k8s/values.yaml
+
1
−
1
View file @
05824a5f
...
@@ -2,5 +2,5 @@ replicas: 1
...
@@ -2,5 +2,5 @@ replicas: 1
Domain
:
keresettaferi.kszk.bme.hu
Domain
:
keresettaferi.kszk.bme.hu
Name
:
keresettaferi
Name
:
keresettaferi
Tag
:
"
v2.
6
"
Tag
:
"
v2.
7
"
REGISTRY_CONF
:
"
${REGISTRY_CONF}"
REGISTRY_CONF
:
"
${REGISTRY_CONF}"
This diff is collapsed.
Click to expand it.
stations.yaml
+
8
−
0
View file @
05824a5f
...
@@ -21,4 +21,12 @@ stations:
...
@@ -21,4 +21,12 @@ stations:
name
:
uccso
name
:
uccso
story
:
"
07.html"
story
:
"
07.html"
order
:
-
first
-
9881300f-175b-4809-b8fb-d915b2c900ac
-
2ab06fbd-0606-42a9-abc7-4163221d3f1f
-
7023030f-e22f-4c82-93ae-4c847b3ac964
-
12907d55-a0c0-4256-bb60-017d603ce403
-
f0495cfa-5667-4853-ba69-febfde57fdc2
-
last
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