Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TouHou.FM
Site
www-touhouradio-net
Commits
c7796b82
Commit
c7796b82
authored
Jul 31, 2021
by
Daniel Sonck
Browse files
Add GitlabCI file
parent
90f1f228
Pipeline
#546
failed with stages
in 31 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
c7796b82
stages
:
-
prepare
-
package
app:prepare:
image
:
alpine/git:v2.26.2
stage
:
prepare
tags
:
-
kubernetes
-
cluster
script
:
-
echo "VERSION=$(git describe | sed s!release/!!g)" > variables.env
artifacts
:
reports
:
dotenv
:
-
variables.env
rules
:
-
if
:
'
$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
==
"development"
||
$CI_COMMIT_BRANCH
==
"development"
||
$CI_COMMIT_TAG
=~
/^release\//'
when
:
on_success
app:package:
stage
:
package
image
:
quay.io/buildah/stable:v1.16.0
needs
:
-
job
:
app:prepare
artifacts
:
true
tags
:
-
kubernetes
-
cluster
before_script
:
-
buildah login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script
:
-
buildah bud -t "$CI_REGISTRY_IMAGE:$VERSION"
-
buildah push "$CI_REGISTRY_IMAGE:$VERSION" "docker://$CI_REGISTRY_IMAGE:$VERSION"
rules
:
-
if
:
'
$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
==
"development"
||
$CI_COMMIT_BRANCH
==
"development"
||
$CI_COMMIT_TAG
=~
/^release\//'
when
:
on_success
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment