Skip to content
Snippets Groups Projects
Commit a3421507 authored by michael.minelli's avatar michael.minelli
Browse files

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
...@@ -34,6 +34,7 @@ variables: ...@@ -34,6 +34,7 @@ variables:
- apk update - apk update
- apk add git - apk add git
- apk add jq - apk add jq
- apk add curl
# Init docker buildx # Init docker buildx
- docker login -u $DOCKER_REGISTRY_USER -p $DOCKER_REGISTRY_PASSWORD $DOCKER_REGISTRY - docker login -u $DOCKER_REGISTRY_USER -p $DOCKER_REGISTRY_PASSWORD $DOCKER_REGISTRY
- docker buildx create --use - docker buildx create --use
...@@ -46,7 +47,6 @@ variables: ...@@ -46,7 +47,6 @@ variables:
- !reference [ .init_dind_script, script ] - !reference [ .init_dind_script, script ]
- mkdir -p $ARTIFACTS_FOLDER - mkdir -p $ARTIFACTS_FOLDER
# Download secure files # Download secure files
- apk add curl
- curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | sh - 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 - 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) # 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: ...@@ -67,8 +67,7 @@ variables:
stages: stages:
- build - build
- clean-same-release - clean
- clean-dev-release
- release - release
build:test: build:test:
...@@ -100,7 +99,7 @@ build:version: ...@@ -100,7 +99,7 @@ build:version:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ /^v[0-9]+(\.[0-9]+)*$/' - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ /^v[0-9]+(\.[0-9]+)*$/'
clean:release: clean:release:
stage: clean-same-release stage: clean
tags: tags:
- gitlab_clean - gitlab_clean
image: registry.gitlab.com/gitlab-ci-utils/curl-jq:latest image: registry.gitlab.com/gitlab-ci-utils/curl-jq:latest
...@@ -110,8 +109,8 @@ clean:release: ...@@ -110,8 +109,8 @@ clean:release:
rules: rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ /^v[0-9]+(\.[0-9]+)*$/' - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ /^v[0-9]+(\.[0-9]+)*$/'
clean-dev:release: clean:dev:release:
stage: clean-dev-release stage: clean
tags: tags:
- gitlab_clean - gitlab_clean
image: registry.gitlab.com/gitlab-ci-utils/curl-jq:latest image: registry.gitlab.com/gitlab-ci-utils/curl-jq:latest
...@@ -122,8 +121,8 @@ clean-dev:release: ...@@ -122,8 +121,8 @@ clean-dev:release:
rules: rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
clean:dockerhub:dev: clean:dev:dockerhub:
stage: clean-dev-release stage: clean
tags: tags:
- clean - clean
- dind - dind
...@@ -161,7 +160,7 @@ release:dockerhub:latest: ...@@ -161,7 +160,7 @@ release:dockerhub:latest:
rules: rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
release_job: release:gitlab:
stage: release stage: release
tags: tags:
- release - release
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment