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
Radio Go
Playlist
Commits
6e294c83
Verified
Commit
6e294c83
authored
Nov 14, 2020
by
Daniel Sonck
Browse files
Change to gitlab container registry
parent
3e631eb4
Pipeline
#253
passed with stages
in 3 minutes and 1 second
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
6e294c83
...
...
@@ -9,7 +9,8 @@ cache:
build
:
stage
:
build
script
:
-
./build-docker.sh docker2.touhou.fm
-
buildah login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
./build-docker.sh $CI_REGISTRY_IMAGE
after_script
:
-
chmod u+rwx .go -R
artifacts
:
...
...
@@ -36,7 +37,7 @@ deploy:
script
:
-
git config --global user.email "$GITLAB_USER_EMAIL"
-
git config --global user.name "$GITLAB_USER_NAME"
-
git clone ssh://gitlab@git.
touhou.fm
:7222/touhou.fm/radio-go/infra/radio.git
-
git clone ssh://gitlab@git.
sonck.nl
:7222/touhou.fm/radio-go/infra/radio.git
-
cd radio
-
git checkout ci/update-version
-
cp ../playlist.version.auto.tfvars ./
...
...
build-docker.sh
View file @
6e294c83
...
...
@@ -41,6 +41,6 @@ buildah rm "${C}"
C
=
$(
buildah from scratch
||
exit
1
)
buildah copy
"
${
C
}
"
"
${
PWD
}
/target/output/playlist"
/playlist
||
on_fail
buildah config
--port
2001
--entrypoint
'["/playlist"]'
--cmd
'start --config /config/playlist.yml'
"
${
C
}
"
buildah commit
"
${
C
}
"
"
$1
/thfmr/playlist
:
$VERSION
"
||
on_fail
buildah push
"
$1
/thfmr/playlist
:
$VERSION
"
"docker://
$1
/thfmr/playlist
:
$VERSION
"
buildah commit
"
${
C
}
"
"
$1
:
$VERSION
"
||
on_fail
buildah push
"
$1
:
$VERSION
"
"docker://
$1
:
$VERSION
"
buildah
rm
"
${
C
}
"
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