Skip to content

Instantly share code, notes, and snippets.

@kittinan
Created April 14, 2020 09:11
Show Gist options
  • Save kittinan/761ff556c1b09f7d8cad3596b239c181 to your computer and use it in GitHub Desktop.
Save kittinan/761ff556c1b09f7d8cad3596b239c181 to your computer and use it in GitHub Desktop.
stages:
- build
- deploy
build:
stage: build
when: on_success
only:
- master
image: docker:stable
services:
- docker:dind
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker build -t $CI_REGISTRY/hytta-iot/hytta.io .
- docker push $CI_REGISTRY/hytta-iot/hytta.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment