Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Rechnerarchitektur-Tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
oh14.dev
Rechnerarchitektur-Tools
Commits
f30b6c5e
Verified
Commit
f30b6c5e
authored
2 years ago
by
Jonas Zohren
Browse files
Options
Downloads
Patches
Plain Diff
chore: Update to oh14.dev deployment
parent
13523c7c
No related branches found
No related tags found
No related merge requests found
Pipeline
#143055
passed
2 years ago
Stage: test
Stage: deploy
Changes
5
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
.dockerignore
+4
-0
4 additions, 0 deletions
.dockerignore
.gitlab-ci.yml
+45
-1
45 additions, 1 deletion
.gitlab-ci.yml
Dockerfile
+12
-0
12 additions, 0 deletions
Dockerfile
captain-definition
+4
-0
4 additions, 0 deletions
captain-definition
src/routes/+layout.svelte
+3
-3
3 additions, 3 deletions
src/routes/+layout.svelte
with
68 additions
and
4 deletions
.dockerignore
0 → 100644
+
4
−
0
View file @
f30b6c5e
/node_modules/
/public/build/
.DS_Store
test-results.xml
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
45
−
1
View file @
f30b6c5e
pages
:
pages
:
needs
:
[]
image
:
node:18
image
:
node:18
script
:
script
:
-
"
corepack
enable"
# Add pnpm, see https://nodejs.org/api/corepack.html
-
"
corepack
enable"
# Add pnpm, see https://nodejs.org/api/corepack.html
...
@@ -7,3 +8,46 @@ pages:
...
@@ -7,3 +8,46 @@ pages:
artifacts
:
artifacts
:
paths
:
paths
:
-
"
public"
-
"
public"
rules
:
-
if
:
'
$CI_COMMIT_BRANCH
==
$CI_DEFAULT_BRANCH'
build_docker_main
:
needs
:
[]
image
:
name
:
"
gcr.io/kaniko-project/executor:debug"
entrypoint
:
[
"
"
]
script
:
-
"
mkdir
-p
/kaniko/.docker"
-
'
echo
"{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}"
>
/kaniko/.docker/config.json'
-
"
/kaniko/executor
--context
$CI_PROJECT_DIR
--dockerfile
$CI_PROJECT_DIR/Dockerfile
--destination
$CI_REGISTRY_IMAGE:commit-$CI_COMMIT_SHORT_SHA
--destination
$CI_REGISTRY_IMAGE:latest"
rules
:
-
if
:
'
$CI_COMMIT_BRANCH
==
$CI_DEFAULT_BRANCH'
build_docker_branches
:
needs
:
[]
image
:
name
:
"
gcr.io/kaniko-project/executor:debug"
entrypoint
:
[
"
"
]
script
:
-
"
mkdir
-p
/kaniko/.docker"
-
'
echo
"{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}"
>
/kaniko/.docker/config.json'
-
"
/kaniko/executor
--context
$CI_PROJECT_DIR
--dockerfile
$CI_PROJECT_DIR/Dockerfile
--destination
$CI_REGISTRY_IMAGE:commit-$CI_COMMIT_SHORT_SHA
--destination
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-latest"
rules
:
-
if
:
'
$CI_COMMIT_BRANCH
!=
$CI_DEFAULT_BRANCH'
deploy_to_caprover
:
needs
:
-
"
build_docker_main"
image
:
name
:
"
caprover/cli-caprover:latest"
entrypoint
:
[
"
"
]
variables
:
# We don't need the files, just tell CapRover to use the built docker image:
GIT_STRATEGY
:
none
script
:
-
"
caprover
deploy
-h
https://captain.$CAPROVER_URL
-a
$CAPROVER_APP
--imageName
$CI_REGISTRY_IMAGE:commit-$CI_COMMIT_SHORT_SHA"
environment
:
name
:
"
production"
url
:
"
https://ra-tools.oh14.dev/"
rules
:
-
if
:
"
$CI_COMMIT_BRANCH
==
$CI_DEFAULT_BRANCH
&&
$CAPROVER_URL
&&
$CAPROVER_APP_TOKEN
&&
$CAPROVER_APP"
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
12
−
0
View file @
f30b6c5e
FROM
node:18-alpine
AS
build
RUN
corepack
enable
WORKDIR
/build
COPY
package.json pnpm-lock.yaml /build/
RUN
pnpm
install
--ignore-scripts
COPY
. .
RUN
pnpm run build
FROM
pierrezemb/gostatic
AS
final
COPY
--from=build /build/public/ /srv/http/
\ No newline at end of file
This diff is collapsed.
Click to expand it.
captain-definition
0 → 100644
+
4
−
0
View file @
f30b6c5e
{
"schemaVersion" :2 ,
"dockerfilePath" : "Dockerfile"
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/routes/+layout.svelte
+
3
−
3
View file @
f30b6c5e
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
<hr
style=
"margin-top: 2rem;"
/>
<hr
style=
"margin-top: 2rem;"
/>
<a
href=
"./"
>
Home
</a>
<a
href=
"./"
>
Home
</a>
–
–
<a
href=
"https://gitlab.fachschaften.org/
jfowl
/ra-tools/"
>
Source Code (MIT licensed)
</a>
<a
href=
"https://gitlab.fachschaften.org/
oh14-dev
/ra-tools/"
>
Source Code (MIT licensed)
</a>
–
–
<a
href=
"https://oh14.de/impressum"
>
Imprint
</a>
<a
href=
"https://oh14.de
v
/impressum"
>
Imprint
</a>
–
–
<a
href=
"https://oh14.de/datenschutz
erklaerung
.html"
>
Data Privacy Statement
</a>
<a
href=
"https://oh14.de
v
/datenschutz.html"
>
Data Privacy Statement
</a>
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