Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
grady
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Grady Corp.
grady
Commits
ba70e108
Commit
ba70e108
authored
1 month ago
by
Kai Oliver Meister
Browse files
Options
Downloads
Patches
Plain Diff
testing
parent
b8401c0c
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#587036
failed
1 month ago
Stage: build
Stage: testing
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+4
-3
4 additions, 3 deletions
.gitlab-ci.yml
Dockerfile
+2
-14
2 additions, 14 deletions
Dockerfile
with
6 additions
and
17 deletions
.gitlab-ci.yml
+
4
−
3
View file @
ba70e108
...
...
@@ -61,13 +61,15 @@ build_server_image:
docker login
--password-stdin
-u $CI_REGISTRY_USER $CI_REGISTRY
# create some infra for surreal later on
-
mkdir -p run/data
-
chmod -R 777 run/data
# build and push the server image
-
docker pull $TEST_IMAGE ||
true
-
docker build
--network=host
-t $TEST_IMAGE .
#
--cache-from $TEST_IMAGE
--cache-from $TEST_IMAGE
-
docker push $TEST_IMAGE
# - *install_docker-compose
# - docker-compose up -d
...
...
@@ -91,8 +93,7 @@ extract_frontend:
image
:
$TEST_IMAGE
<<
:
*build_files_cache
script
:
# - cd $TEST_IMAGE_WORKDIR
-
ls -la
-
cd $TEST_IMAGE_WORKDIR
-
echo "Extracting build files from Image into the cache..."
interruptible
:
true
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
+
2
−
14
View file @
ba70e108
...
...
@@ -10,7 +10,7 @@ RUN mkdir ~/.ssh/ \
&& echo "github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=" \
>> ~/.ssh/known_hosts
WORKDIR
app/
WORKDIR
/
app/
COPY
package.json .
COPY
package-lock.json .
...
...
@@ -25,21 +25,9 @@ RUN npm list
COPY
. .
RUN
npm run build
RUN
pwd
RUN
ls
-la
# reconfigure the CMD default to launch the server
# ENTRYPOINT ["cd", "~/app/", "&&" "npm", "run", "preview:exposed"]
# # and expose the port explicitly
# EXPOSE 4173
# second stage:
# use/create a smaller image that is actually stored
# everything from previous stages is discarded !
FROM
node:current-alpine3.21
AS
serving_stage
COPY
--from=build_stage /.ssh/ /
COPY
--from=build_stage app/build/ .
COPY
--from=build_stage app/.svelte-kit/ .
COPY
--from=build_stage app/node_modules/ .
# EXPOSE 4173
\ No newline at end of file
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