Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
silkaj
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
silkaj
Commits
513bc352
Commit
513bc352
authored
4 years ago
by
Moul
Browse files
Options
Downloads
Patches
Plain Diff
[wip]
#388
: mv test stage after package, test build
Disable manual trigger Docker: where am I
parent
c506e58f
No related branches found
No related tags found
No related merge requests found
Pipeline
#11638
failed
4 years ago
Stage: checks
Stage: package
Stage: tests
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+11
-11
11 additions, 11 deletions
.gitlab-ci.yml
Dockerfile
+2
-0
2 additions, 0 deletions
Dockerfile
with
13 additions
and
11 deletions
.gitlab-ci.yml
+
11
−
11
View file @
513bc352
stages
:
stages
:
-
checks
-
checks
-
tests
-
package
-
package
-
tests
-
coverage
-
coverage
variables
:
variables
:
...
@@ -81,22 +81,22 @@ tests-3.9:
...
@@ -81,22 +81,22 @@ tests-3.9:
tags
:
[
docker
]
tags
:
[
docker
]
image
:
docker:latest
image
:
docker:latest
services
:
services
:
-
docker:dind
-
docker:latest
before_script
:
-
docker login -u $DOCKER_REGISTRY_USER -p $DOCKER_REGISTRY_USER $CI_REGISTRY
script
:
script
:
-
docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY
-
echo "$CI_REGISTRY_IMAGE"
-
docker build --pull -t "$CI_REGISTRY_IMAGE:$IMAGE_TAG" .
-
docker pull $CI_REGISTRY_IMAGE:latest ||
true
-
docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY
-
docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$IMAGE_TAG --tag $CI_REGISTRY_IMAGE:latest .
-
docker tag "$CI_REGISTRY_IMAGE:$IMAGE_TAG" "$CI_REGISTRY_IMAGE:$IMAGE_TAG"
-
docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
-
docker push "$CI_REGISTRY_IMAGE:$IMAGE_TAG"
-
docker push $CI_REGISTRY_IMAGE:latest
-
docker tag "$CI_REGISTRY_IMAGE:$IMAGE_TAG" "$CI_REGISTRY_IMAGE:latest"
-
docker push "$CI_REGISTRY_IMAGE:latest"
container
:
container
:
extends
:
.container
extends
:
.container
variables
:
variables
:
IMAGE_TAG
:
"
dev"
IMAGE_TAG
:
"
dev"
rules
:
#
rules:
-
when
:
manual
#
- when: manual
pypi_test
:
pypi_test
:
stage
:
package
stage
:
package
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
+
2
−
0
View file @
513bc352
FROM
registry.duniter.org/docker/python3/poetry/3.9:latest
FROM
registry.duniter.org/docker/python3/poetry/3.9:latest
RUN
ls
&&
ls
silkaj
# Install Silkaj
# Install Silkaj
RUN
poetry
install
RUN
poetry
install
...
...
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