image: docker:latest

services:
- name: docker:dind

before_script:
  - docker version
  - docker info

deploy:
  script:
    - apk add --update python py-pip unzip
    - pip install awscli --upgrade
    - aws s3 cp s3://wons-public-files/wons-data.zip wons-data.zip
    - unzip wons-data.zip
    - rm wons-data.zip
    - docker login -u $REGISTRY_USERNAME -p $REGISTRY_PASSWORD
    - docker build -t wons:latest .
    - docker tag wons:latest lem1x/wons:latest
    - docker push lem1x/wons:latest
  only:
    - master

image: lem1x/docker-python-aws:latest

services:
- name: docker:dind

before_script:
  - docker version
  - docker info

deploy:
  script:
    - apk add --update unzip
    - aws s3 cp s3://wons-public-files/wons-data.zip wons-data.zip
    - unzip wons-data.zip
    - rm wons-data.zip
    - docker login -u $REGISTRY_USERNAME -p $REGISTRY_PASSWORD
    - docker build -t wons:latest .
    - docker tag wons:latest lem1x/wons:latest
    - docker push lem1x/wons:latest
  only:
    - master

Use new custom image for builds
Use new custom image for builds
