stages: - build - dockerize variables: CONTAINER_IMAGE: registry.gitlab.com/ahmza/blog:latest GIT_SUBMODULE_STRATEGY: recursive Build: stage: build image: alpine:latest before_script: - which curl || ( apk update && apk add curl ) - curl -L https://github.com/gohugoio/hugo/releases/download/v0.90.0/hugo_0.90.0_Linux-64bit.tar.gz > hugo.tar.gz - tar -zxf hugo.tar.gz - mv hugo /usr/local/bin script: - hugo - ls artifacts: name: "webfiles" paths: - public only: - main Dockerize: stage: dockerize image: name: nginx:latest script: - pwd - ls - ls public only: - main