Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DojoExerciseChecker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
Dojo Project (HES-SO)
Projects
Pipelines
DojoExerciseChecker
Commits
a3421507
Commit
a3421507
authored
1 year ago
by
michael.minelli
Browse files
Options
Downloads
Patches
Plain Diff
CI/CD => Bug fix: Add missing dependencies for clean:dev:dockerhub
parent
8aa76891
No related branches found
No related tags found
No related merge requests found
Pipeline
#26327
passed
1 year ago
Stage: build
Stage: clean
Stage: release
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+8
-9
8 additions, 9 deletions
.gitlab-ci.yml
with
8 additions
and
9 deletions
.gitlab-ci.yml
+
8
−
9
View file @
a3421507
...
...
@@ -34,6 +34,7 @@ variables:
-
apk update
-
apk add git
-
apk add jq
-
apk add curl
# Init docker buildx
-
docker login -u $DOCKER_REGISTRY_USER -p $DOCKER_REGISTRY_PASSWORD $DOCKER_REGISTRY
-
docker buildx create --use
...
...
@@ -46,7 +47,6 @@ variables:
-
!reference
[
.init_dind_script
,
script
]
-
mkdir -p $ARTIFACTS_FOLDER
# Download secure files
-
apk add curl
-
curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | sh
-
mv .secure_files/env_$VERSION $PROJECT_FOLDER/.env
# Need to build for each platform separately because of multi-stage builds (docker buildx don't use cache same way as docker build)
...
...
@@ -67,8 +67,7 @@ variables:
stages
:
-
build
-
clean-same-release
-
clean-dev-release
-
clean
-
release
build:test
:
...
...
@@ -100,7 +99,7 @@ build:version:
-
if
:
'
$CI_COMMIT_BRANCH
==
$CI_DEFAULT_BRANCH
||
$CI_COMMIT_BRANCH
=~
/^v[0-9]+(\.[0-9]+)*$/'
clean:release
:
stage
:
clean
-same-release
stage
:
clean
tags
:
-
gitlab_clean
image
:
registry.gitlab.com/gitlab-ci-utils/curl-jq:latest
...
...
@@ -110,8 +109,8 @@ clean:release:
rules
:
-
if
:
'
$CI_COMMIT_BRANCH
==
$CI_DEFAULT_BRANCH
||
$CI_COMMIT_BRANCH
=~
/^v[0-9]+(\.[0-9]+)*$/'
clean
-
dev:release
:
stage
:
clean
-dev-release
clean
:
dev:release
:
stage
:
clean
tags
:
-
gitlab_clean
image
:
registry.gitlab.com/gitlab-ci-utils/curl-jq:latest
...
...
@@ -122,8 +121,8 @@ clean-dev:release:
rules
:
-
if
:
'
$CI_COMMIT_BRANCH
==
$CI_DEFAULT_BRANCH'
clean:dockerhub:
dev
:
stage
:
clean
-dev-release
clean:
dev:
dockerhub
:
stage
:
clean
tags
:
-
clean
-
dind
...
...
@@ -161,7 +160,7 @@ release:dockerhub:latest:
rules
:
-
if
:
'
$CI_COMMIT_BRANCH
==
$CI_DEFAULT_BRANCH'
release
_jo
b
:
release
:gitla
b
:
stage
:
release
tags
:
-
release
...
...
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