Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jussi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
hive
jussi
Commits
bdd5860c
Commit
bdd5860c
authored
1 year ago
by
Eric Frias
Browse files
Options
Downloads
Patches
Plain Diff
Add docker image labels
parent
d91e53ab
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+10
-1
10 additions, 1 deletion
.gitlab-ci.yml
Dockerfile.minimal
+21
-0
21 additions, 0 deletions
Dockerfile.minimal
with
31 additions
and
1 deletion
.gitlab-ci.yml
+
10
−
1
View file @
bdd5860c
...
...
@@ -11,7 +11,16 @@ docker-setup-and-processing-build:
-
docker:24.0.6-dind
script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
-
docker build -f Dockerfile.minimal -t ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA} -t ${CI_REGISTRY_IMAGE}:latest .
-
docker build -f Dockerfile.minimal
-t ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}
-t ${CI_REGISTRY_IMAGE}:latest
--build-arg BUILD_TIME="$(date -uIseconds)"
--build-arg GIT_COMMIT_SHA="$CI_COMMIT_SHA"
--build-arg GIT_CURRENT_BRANCH="$CI_COMMIT_BRANCH"
--build-arg GIT_LAST_LOG_MESSAGE="$CI_COMMIT_MESSAGE"
--build-arg GIT_LAST_COMMITTER="$CI_COMMIT_AUTHOR"
--build-arg GIT_LAST_COMMIT_DATE="$CI_COMMIT_TIMESTAMP"
.
-
docker push --all-tags ${CI_REGISTRY_IMAGE}
tags
:
-
public-runner-docker
This diff is collapsed.
Click to expand it.
Dockerfile.minimal
+
21
−
0
View file @
bdd5860c
...
...
@@ -34,3 +34,24 @@ COPY . .
# Run the application
ENTRYPOINT ["python", "-m", "jussi.serve"]
CMD []
ARG BUILD_TIME
ARG GIT_COMMIT_SHA
ARG GIT_CURRENT_BRANCH
ARG GIT_LAST_LOG_MESSAGE
ARG GIT_LAST_COMMITTER
ARG GIT_LAST_COMMIT_DATE
LABEL org.opencontainers.image.created="$BUILD_TIME"
LABEL org.opencontainers.image.url="https://hive.io/"
LABEL org.opencontainers.image.documentation="https://gitlab.syncad.com/hive/jussi"
LABEL org.opencontainers.image.source="https://gitlab.syncad.com/hive/jussi"
#LABEL org.opencontainers.image.version="${VERSION}"
LABEL org.opencontainers.image.revision="$GIT_COMMIT_SHA"
LABEL org.opencontainers.image.licenses="MIT"
LABEL org.opencontainers.image.ref.name="Jussi"
LABEL org.opencontainers.image.title="Jussi Reverse Proxy"
LABEL org.opencontainers.image.description="A caching reverse proxy for JSON-RPC specifically designed to cache the Hive API"
LABEL io.hive.image.branch="$GIT_CURRENT_BRANCH"
LABEL io.hive.image.commit.log_message="$GIT_LAST_LOG_MESSAGE"
LABEL io.hive.image.commit.author="$GIT_LAST_COMMITTER"
LABEL io.hive.image.commit.date="$GIT_LAST_COMMIT_DATE"
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