Skip to content

Commit

Permalink
Add ctc-check prior to tag promotion
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwlewis committed Aug 19, 2024
1 parent dcc7178 commit c58c71b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,28 @@ jobs:
done
done
ctc-check:
name: Obtain CTC Lock
if: github.ref_type == 'tag'
runs-on: ubuntu-24.04
steps:
- name: Obtain CTC Lock via TPS API
run: |
curl -vv -X PUT \
-H "ACCEPT: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Token ${{ secrets.tps_token }}" \
-d '{"lock": {"sha": "${{ github.sha }}", "component_name": "${{ vars.tps_component }}"}}' \
${{ secrets.tps_ctc_api_url }}
echo "successful"
exit 1
promote-tags:
if: github.ref_type == 'tag'
name: "Promote heroku-${{ matrix.stack-version }} tags"
needs:
- ctc-check
- publish-images
- publish-indices
runs-on: ubuntu-24.04
Expand Down

0 comments on commit c58c71b

Please sign in to comment.