Commit b7bb3981 authored by Kostis Trantzas's avatar Kostis Trantzas
Browse files

Merging 2024Q2_RC into main, creating 2024Q2 Release (updating the pipeline...

Merging 2024Q2_RC into main, creating 2024Q2 Release (updating the pipeline that creates docker images for the main branch)
parents c63eddbc f3c29635
Loading
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -15,12 +15,13 @@
    name: gcr.io/kaniko-project/executor:debug
    name: gcr.io/kaniko-project/executor:debug
    entrypoint: [""]
    entrypoint: [""]
  script:
  script:
    - /kaniko/executor --context "${CI_PROJECT_DIR}" --dockerfile "${CI_PROJECT_DIR}/Dockerfile" --destination "${CI_REGISTRY_IMAGE}:$APP_VERSION"
    - export DOCKER_TAG=$APP_VERSION
    - |
    - |
      if [ "$CI_COMMIT_REF_NAME" = "main" ]; then
      if [ "$CI_COMMIT_REF_NAME" = "main" ]; then
        echo "Pushing Docker image with tag 'latest'"
        echo "Pushing Docker image with tag 'latest'"
        /kaniko/executor --context "${CI_PROJECT_DIR}" --dockerfile "${CI_PROJECT_DIR}/Dockerfile" --destination "${CI_REGISTRY_IMAGE}:latest" --cache=true --cache-repo "${CI_REGISTRY_IMAGE}:$APP_VERSION"
        export DOCKER_TAG=latest
      fi
      fi
    - /kaniko/executor --context "${CI_PROJECT_DIR}" --dockerfile "${CI_PROJECT_DIR}/Dockerfile" --destination "${CI_REGISTRY_IMAGE}:$APP_VERSION"


.angular_build:
.angular_build:
  extends: .default
  extends: .default