Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
deploy-ssh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
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
images
deploy-ssh
Commits
2d1420fd
Commit
2d1420fd
authored
5 months ago
by
Lukas Schreiner
Browse files
Options
Downloads
Patches
Plain Diff
Update docker tags
parent
a77583f5
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#3172
passed
5 months ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+6
-2
6 additions, 2 deletions
.gitlab-ci.yml
with
6 additions
and
2 deletions
.gitlab-ci.yml
+
6
−
2
View file @
2d1420fd
...
...
@@ -12,12 +12,16 @@ variables:
-
docker:dind
script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
-
docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA" -t "$CI_REGISTRY_IMAGE:latest" --build-arg ALPINE_VERSION=$ALPINE_VERSION .
-
docker push "$CI_REGISTRY_IMAGE
:latest"
-
docker build --pull -t
"$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA" -t
"$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA" -t "$CI_REGISTRY_IMAGE:latest" --build-arg ALPINE_VERSION=$ALPINE_VERSION .
-
docker push "$CI_REGISTRY_IMAGE
" --all-tags
include
:
-
template
:
Jobs/Container-Scanning.gitlab-ci.yml
build:deploy
:
extends
:
.build_tpl
container_scanning
:
variables
:
CS_IMAGE
:
"
$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA"
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