]> git.r.bdr.sh - rbdr/mobius/blobdiff - .circleci/config.yml
Troubleshoot build pipeline
[rbdr/mobius] / .circleci / config.yml
index fd687f394029fae93499fc0c0f57a505e17db8bf..4b6752dc08ea53a3471cd938724eca5c67742efb 100644 (file)
@@ -4,7 +4,7 @@ jobs:
   build:
     working_directory: ~/repo
     docker:
-      - image: cimg/go:1.16.6
+      - image: cimg/go:1.19.1
     steps:
       - checkout
 #      - restore_cache:
@@ -27,13 +27,13 @@ jobs:
 
   deploy:
     docker:
-      - image: cimg/go:1.16.6
+      - image: cimg/go:1.19.1
 #    working_directory: /go/src/github.com/jhalter/mobius
     steps:
       - checkout
       - run: go get -u github.com/mitchellh/gox
       - run: go get -u github.com/tcnksm/ghr
-      - run: go get -u github.com/stevenmatthewt/semantics
+      - run: go install github.com/stevenmatthewt/semantics@latest
       - run:
           name: cross compile
           command: |
@@ -42,9 +42,11 @@ jobs:
       - run:
           name: create release
           command: |
-            tag=$(semantics --output-tag)
+            tag=$(/home/circleci/go/bin/semantics --output-tag)
+            # temp troubleshooting >:(
+            find / -name ghr
             if [ "$tag" ]; then
-              ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace $tag dist/
+              /home/circleci/go/bin/ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace $tag dist/
             else
               echo "The commit message(s) did not indicate a major/minor/patch version."
             fi