Skip to content
.gitlab-ci.yml 672 B
Newer Older
Pierre Ozoux's avatar
Pierre Ozoux committed
variables:
  GIT_SUBMODULE_STRATEGY: recursive

stages:
  - build
  - deploy

test:
  stage: build
  image:
Pierre Ozoux's avatar
Pierre Ozoux committed
    name: registry.gitlab.com/pages/hugo:latest
Pierre Ozoux's avatar
Pierre Ozoux committed
  script:
Pierre Ozoux's avatar
Pierre Ozoux committed
  - hugo
Pierre Ozoux's avatar
Pierre Ozoux committed
  except:
  - master

build:
  stage: build
  image:
Pierre Ozoux's avatar
Pierre Ozoux committed
    name: registry.gitlab.com/pages/hugo:latest
Pierre Ozoux's avatar
Pierre Ozoux committed
  script:
Pierre Ozoux's avatar
Pierre Ozoux committed
  - hugo
  artifacts:
    paths:
    - public
Pierre Ozoux's avatar
Pierre Ozoux committed
  only:
  - master

deploy:
  stage: deploy
  tags:
  - deploy
  image:
Pierre Ozoux's avatar
Pierre Ozoux committed
    name: minio/mc:RELEASE.2020-01-13T22-49-03Z
Pierre Ozoux's avatar
Pierre Ozoux committed
    entrypoint: [""]
  script:
Pierre Ozoux's avatar
Pierre Ozoux committed
  - cd public/
  - export MC_HOST_minio=https://${AWS_ACCESS_KEY_ID}:${AWS_SECRET_ACCESS_KEY}@minio.k7.indie.host
  - mc mirror --remove --overwrite . minio/k8s-libre-sh
Pierre Ozoux's avatar
Pierre Ozoux committed
  only:
Pierre Ozoux's avatar
Pierre Ozoux committed
  - master