File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,22 +51,30 @@ jobs:
5151 tags : " codercom/oss-dogfood:${{ steps.docker-tag-name.outputs.tag }},codercom/oss-dogfood:latest"
5252 cache-from : type=registry,ref=codercom/oss-dogfood:latest
5353 cache-to : type=inline
54+
5455 deploy_template :
5556 needs : deploy_image
5657 runs-on : ubuntu-latest
5758 steps :
5859 - name : Checkout
5960 uses : actions/checkout@v3
61+
6062 - name : Get short commit SHA
6163 id : vars
6264 run : echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
65+
66+ - name : Get Latest Commit Title
67+ id : message
68+ run : echo "pr_title==$(git log --format=%s -n 1 ${{ github.sha }})" >> $GITHUB_OUTPUT
69+
6370 - name : " Get latest Coder binary from the server"
6471 run : |
6572 curl -fsSL "https://dev.coder.com/bin/coder-linux-amd64" -o "./coder"
6673 chmod +x "./coder"
74+
6775 - name : " Push template"
6876 run : |
69- ./coder templates push $CODER_TEMPLATE_NAME --directory $CODER_TEMPLATE_DIR --yes --name=$CODER_TEMPLATE_VERSION
77+ ./coder templates push $CODER_TEMPLATE_NAME --directory $CODER_TEMPLATE_DIR --yes --name=$CODER_TEMPLATE_VERSION --message="$CODER_TEMPLATE_MESSAGE"
7078 env :
7179 # Consumed by Coder CLI
7280 CODER_URL : https://dev.coder.com
7583 CODER_TEMPLATE_NAME : ${{ secrets.CODER_TEMPLATE_NAME }}
7684 CODER_TEMPLATE_VERSION : ${{ steps.vars.outputs.sha_short }}
7785 CODER_TEMPLATE_DIR : ./dogfood
86+ CODER_TEMPLATE_MESSAGE : ${{ steps.message.outputs.pr_title }}
You can’t perform that action at this time.
0 commit comments