Skip to content

Commit

Permalink
ci tag
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoerdie committed Jan 12, 2022
1 parent 63e8cc4 commit 592a11a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,15 @@ jobs:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
run: docker push $IMAGE_NAME:$RELEASE_VERSION

- uses: actions-ecosystem/action-regex-match@v2
id: regex-match
with:
text: ${{ steps.vars.outputs.tag }}
regex: '^\d\.\d\.\d$'

- name: Trigger deployment
env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
run: |
curl -XPOST -u "${{ secrets.SDG_DEPLOYMENT_REPO_ACCESS_TOKEN }}" -H "Accept:application/vnd.github" -H "Content-Type:application/json" ${{ secrets.SDG_DEPLOYMENT_REPO_URL }} --data "{\"ref\": \"main\", \"inputs\": {\"version\": \"$RELEASE_VERSION\"}}"
if: ${{ steps.regex-match.outputs.match != '' }}

0 comments on commit 592a11a

Please sign in to comment.