diff --git a/codeship-steps.yml b/codeship-steps.yml index 09b2c99..db3b0cf 100644 --- a/codeship-steps.yml +++ b/codeship-steps.yml @@ -1,14 +1,7 @@ - service: app - type: serial + type: push + image_name: alinuxninja/postal registry: https://index.docker.io/v1/ encrypted_dockercfg_path: dockercfg.encrypted - steps: - - command: docker tag alinuxninja/postal alinuxninja/postal:latest - - command: docker push alinuxninja/postal -- service: app - type: serial - registry: https://index.docker.io/v1/ - encrypted_dockercfg_path: dockercfg.encrypted - steps: - - command: docker tag alinuxninja/postal alinuxninja/postal:$(git rev-parse --short $(git ls-remote https://github.com/atech/postal.git refs/heads/master | awk '{print $1}')) - - command: docker push alinuxninja/postal + tag: master + image_tag: latest