Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a228c01 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Archive filter for 4 weeks

parent 891332c5
Loading
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -51,6 +51,21 @@ build-cromite-x64:
  script:
    - $CI_PROJECT_DIR/build.sh -c -s -a x64

archive-filter:
  stage: build
  image: registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:slim-latest
  rules:
    - if: $CI_PIPELINE_SOURCE != "schedule"
  needs:
    - job: build-cromite-x64
  script:
    - "true"
  artifacts:
    name: "$CI_JOB_NAME"
    paths:
      - bin/*
    expire_in: 30 days

.build-filters:
  image: registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:slim-latest
  stage: filters
+3 −3
Original line number Diff line number Diff line
@@ -23,13 +23,13 @@ if [ -z "$selected_tag" ]; then
  exit 1
fi

echo "Looking for build-cromite-x64 job in pipeline $pipeline_id..."
echo "Looking for archive-filter job in pipeline $pipeline_id..."

job_id=$(curl -s "${GITLAB_API}/projects/${PROJECT_PATH}/pipelines/${pipeline_id}/jobs" |
  jq -r '.[] | select(.name=="build-cromite-x64") | .id')
  jq -r '.[] | select(.name=="archive-filter") | .id')

if [ -z "$job_id" ]; then
  echo "No job named build-cromite-x64 found in pipeline $pipeline_id"
  echo "No job named archive-filter found in pipeline $pipeline_id"
  exit 1
fi