Skip to content

Commit

Permalink
frontend: push docker images to both repos
Browse files Browse the repository at this point in the history
Continuation of #2381
  • Loading branch information
antoniivanov committed Jul 12, 2023
1 parent b0384a9 commit 07c6419
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions projects/frontend/cicd/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ frontend_publish_ui_image:
script:
- apk --no-cache add bash git
- docker login --username "${VDK_DOCKER_REGISTRY_USERNAME}" --password "${VDK_DOCKER_REGISTRY_PASSWORD}" "${VDK_DOCKER_REGISTRY_URL}"
- ../../cicd/publish_image_dockerhub.sh vdk-operations-ui . $CI_PIPELINE_ID
- ../../cicd/publish_image_docker.sh vdk-operations-ui . $CI_PIPELINE_ID
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: never
- if: '$CI_COMMIT_BRANCH == "main"'
changes: *frontend_shared_components_locations
- if: '$CI_COMMIT_BRANCH == "main"'
changes: *frontend_data_pipelines_locations
extends: .frontend_publish_docker_image
extends: .images:dind:docker-push-to-vdk-repos

frontend_tag_ui_image_stable:
stage: release_image
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ image_tag="$image_repo:$version_tag"
commit_sha=$(git rev-parse --short HEAD)

docker build -t "$image_tag" -t "$image_repo:latest" -t "$image_repo:$commit_sha" $ui_path
docker push "$image_tag"
docker push "$image_repo:latest"
docker push "$image_repo:$commit_sha"

docker_push_vdk.sh "$image_tag"
docker_push_vdk.sh "$image_repo:latest"
docker_push_vdk.sh "$image_repo:$commit_sha"

0 comments on commit 07c6419

Please sign in to comment.