Skip to content
.gitlab-ci.yml 659 B
Newer Older
Pierre Ozoux's avatar
Pierre Ozoux committed
variables:
Hugo Renard's avatar
Hugo Renard committed
  DOCKER_HUB_REPO: quay.io/libre.sh/jibri
Hugo Renard's avatar
Hugo Renard committed
  VERSION: v0.2.0
Pierre Ozoux's avatar
Pierre Ozoux committed

test:
  tags:
  - build
  image:
    name: gcr.io/kaniko-project/executor:debug
    entrypoint: [""]
  script:
    - /kaniko/executor --context . --no-push --build-arg VERSION=$VERSION
  except:
  - master

build:
  tags:
  - build
  image:
    name: gcr.io/kaniko-project/executor:debug
    entrypoint: [""]
  script:
    - cp $DOCKER_SECRET_CONFIG /kaniko/.docker/config.json
    - export DESTINATION="--destination ${DOCKER_HUB_REPO}:${VERSION} --destination ${DOCKER_HUB_REPO}:latest"
    - /kaniko/executor --context . ${DESTINATION} --build-arg VERSION=$VERSION
  only:
  - master