You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
882 B
33 lines
882 B
sudo: required
|
|
services:
|
|
- docker
|
|
env:
|
|
global:
|
|
# - REGISTRY_USER=${REGISTRY_USER}
|
|
# - REGISTRY_PASS=${REGISTRY_PASS}
|
|
# - IMAGE_NAME=${REGISTRY_USER}/deletefb
|
|
|
|
# before_script:
|
|
|
|
script:
|
|
# - docker build --pull --no-cache --tag "$IMAGE_NAME" .
|
|
# - docker build --pull --cache-from "$IMAGE_NAME" --tag "$IMAGE_NAME" .
|
|
- echo "${REGISTRY_PASS}" | docker login -u "${REGISTRY_USER}" --password-stdin
|
|
- docker build -t ${IMAGE_NAME} .
|
|
- docker images
|
|
- docker push ${REGISTRY_USER}/${IMAGE_NAME}
|
|
on:
|
|
branch: master
|
|
|
|
# after_script:
|
|
# - docker images
|
|
|
|
# before_deploy:
|
|
# - docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS"
|
|
# - docker tag "$IMAGE_NAME" "${IMAGE_NAME}:latest"
|
|
# # - docker tag "$IMAGE_NAME" "${IMAGE_NAME}:${version}"
|
|
# deploy:
|
|
# provider: script
|
|
# script: docker push "${IMAGE_NAME}:latest"
|
|
# on:
|
|
# branch: master
|