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

Commit ab64c368 authored by Romain Hunault's avatar Romain Hunault
Browse files

Define revision for build

parent 37185b3c
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
stages:
  - build

variables:
  REVISION: "latest"

build_image:
  stage: build
  image: docker:git
@@ -9,4 +12,7 @@ build_image:
  script:
    - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.e.foundation:5000
    - docker build -t registry.gitlab.e.foundation:5000/e/os/docker-lineage-cicd .
    - docker push registry.gitlab.e.foundation:5000/e/os/docker-lineage-cicd:latest
    - docker push registry.gitlab.e.foundation:5000/e/os/docker-lineage-cicd:$REVISION
  only:
    - /^master$/
    - web