.gitlab-ci.yml 410 Bytes
Newer Older
1
image: alpinelinux/docker-cli:latest
Kevin Daudt's avatar
Kevin Daudt committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
stages:
  - build
  - upload

build:
  stage: build
  tags:
    - docker-alpine
    - x86_64
  script:
    - docker build -t $CI_PROJECT_NAME:latest .

upload:
  stage: upload
  before_script:
    - docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
  only:
    - master
  script:
    - docker-push-image $CI_PROJECT_NAME:latest $DOCKER_NAMESPACE/$CI_PROJECT_NAME:latest