Browse Source

add manual ci file

master
markuman 3 years ago
parent
commit
3b2b865561
  1. 34
      .gitlab-ci.yml

34
.gitlab-ci.yml

@ -0,0 +1,34 @@
image: registry.gitlab.com/markuman/dev:3.7.0
variables:
DOCKER_DRIVER: overlay
DOCKER_HOST: tcp://docker:2375/
stages:
- build
build:
stage: build
tags:
- docker
only:
- dev
services:
- docker:dind
script:
- docker build -t registry.gitlab.com/markuman/firefox-headless:latest .
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com
- docker push registry.gitlab.com/markuman/firefox-headless:latest
build:
stage: build
tags:
- docker
only:
- master
services:
- docker:dind
script:
- docker build -t registry.gitlab.com/markuman/firefox-headless:58 .
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com
- docker push registry.gitlab.com/markuman/firefox-headless:58
Loading…
Cancel
Save