diff --git a/.github/workflows/release-docker-hub.yml b/.github/workflows/release-docker-hub.yml index 4174a8cd..9769f0b0 100644 --- a/.github/workflows/release-docker-hub.yml +++ b/.github/workflows/release-docker-hub.yml @@ -143,3 +143,37 @@ jobs: push: ${{ steps.meta.outputs.tags != '' }} labels: ${{ steps.meta.outputs.labels }} annotations: ${{ steps.meta.outputs.annotations }} + + - name: Extract Semver Tag Only + id: semver_tag + uses: docker/metadata-action@v5 + with: + images: docker.io/${{ vars.DOCKERHUB_ORG }}/identus-mediator + tags: | + type=semver,pattern={{version}} + + - name: Extract SHA Tag Only + id: sha_tag + uses: docker/metadata-action@v5 + with: + images: docker.io/${{ vars.DOCKERHUB_ORG }}/identus-mediator + tags: | + type=sha,format=long + + # This dispatch is to trigger the automatic E2E execution. + # https://github.com/hyperledger-identus/integration + - name: Trigger component integration + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.IDENTUS_CI }} + repository: hyperledger-identus/integration + event-type: integration + client-payload: > + { + "component": "mediator", + "version": "${{ + github.ref_type == 'tag' + && steps.semver_tag.outputs.tags + || steps.sha_tag.outputs.tags + }}" + } \ No newline at end of file