Skip to content

Commit

Permalink
Merge pull request #10 from screwdriver-cd/versionUp
Browse files Browse the repository at this point in the history
Use lightweight tags instead of annotated tags.
  • Loading branch information
jer authored and Filbird committed Jul 27, 2016
2 parents 742ad33 + 1e6116d commit 26a2e08
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions wercker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,22 @@ deploy:
- add-ssh-key:
keyname: GIT_KEY

- install-packages:
packages: openssh-client

# Add GitHub's SSH fingerprint to SSH known_hosts
- add-to-known_hosts:
hostname: github.com
fingerprint: 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
type: rsa

- script:
name: update tags
code: git fetch --tags

- script:
name: update tags
code: git fetch --tags
- script:
name: get highest version from tags
code: export VERSION=$(bash incrementVersion.sh)

- script:
name: add new annotated tag
code: git tag -a $VERSION -m "Tagging release version $VERSION"
name: add new tag
code: git tag $VERSION

- script:
name: push newly added tag
Expand Down

0 comments on commit 26a2e08

Please sign in to comment.