diff --git a/concourse/publish_tag_osx.bash b/concourse/publish_tag_osx.bash new file mode 100755 index 0000000..8460e69 --- /dev/null +++ b/concourse/publish_tag_osx.bash @@ -0,0 +1,14 @@ +#!/bin/bash + + +set -o pipefail +set -u -e -x + +main() { + env LC_ALL=C tar tf bin_gpos_osx_release/bin_gpos_osx_release.tar.gz | grep "libgpos.dylib" | sort -n | head -n 1 | sed 's/\.\/lib\/libgpos\.dylib\./v/' > gpos_github_release_stage_osx/tag.txt + cp -v bin_gpos_osx_release/bin_gpos_osx_release.tar.gz gpos_github_release_stage_osx/bin_gpos_osx_release.tar.gz + cp -v bin_gpos_osx_debug/bin_gpos_osx_debug.tar.gz gpos_github_release_stage_osx/bin_gpos_osx_debug.tar.gz + env GIT_DIR=gpos_src/.git git rev-parse HEAD > gpos_github_release_stage_osx/commit.txt +} + +main "$@" diff --git a/concourse/publish_tag_osx.yml b/concourse/publish_tag_osx.yml new file mode 100644 index 0000000..a1d401c --- /dev/null +++ b/concourse/publish_tag_osx.yml @@ -0,0 +1,9 @@ +platform: darwin +inputs: + - name: gpos_src + - name: bin_gpos_osx_release + - name: bin_gpos_osx_debug +outputs: + - name: gpos_github_release_stage_osx +run: + path: gpos_src/concourse/publish_tag_osx.bash