Browse Source

chg: pkg: more human release name for git tag and docker image name.

rc/16.0-MYC-INIT
Valentin Lab 5 years ago
committed by default
parent
commit
555cb85122
  1. 17
      .drone.yml

17
.drone.yml

@ -25,17 +25,24 @@ steps:
User mirror User mirror
Port 10022 Port 10022
EOF EOF
## Warning: without 'ssh://', the port doesn't see to be used and it tries to
## connect to git.0k.io:22 (ssh fingerprint allows to infer this).
- DEBUG=1 freeze docker.0k.io git.0k.io:/var/git/mirror - DEBUG=1 freeze docker.0k.io git.0k.io:/var/git/mirror
- docker push "$(cat image)" ## this will push the new onbuild image - docker push "$(cat image)" ## this will push the new onbuild image
- docker push "docker.0k.io/mirror/$(cat release)"
- docker push "docker.0k.io/mirror/odoo/$(cat release)"
- docker tag "docker.0k.io/mirror/odoo/$(cat
release)" "docker.0k.io/mirror/odoo:${DRONE_COMMIT_BRANCH//\//_}"
- docker push "docker.0k.io/mirror/odoo:${DRONE_COMMIT_BRANCH//\//_}"
## Warning: without 'ssh://', the port doesn't see to be used and it tries to
## connect to git.0k.io:22 (ssh fingerprint allows to infer this).
- | - |
release=$(cat release) release=$(cat release)
git checkout -b "tmp" git checkout -b "tmp"
git commit -am "chg: pkg: release freezing in $release" git commit -am "chg: pkg: release freezing in $release"
git tag "$release"
git push "${DRONE_GIT_SSH_URL}" "$release"
git tag "release/candidate/$release"
git push "${DRONE_GIT_SSH_URL}" "release/candidate/$release"
- |
release=$(cat release)
echo "PUSHED DOCKER IMAGE: docker.0k.io/mirror/odoo/$release"
echo "PUSHED GIT TAG: release/candidate/$release"
volumes: volumes:
- name: docker - name: docker

Loading…
Cancel
Save