diff --git a/.github/workflows/jellyfish-deploy-notification.yaml b/.github/workflows/jellyfish-deploy-notification.yaml deleted file mode 100644 index 8d0e99c..0000000 --- a/.github/workflows/jellyfish-deploy-notification.yaml +++ /dev/null @@ -1,35 +0,0 @@ -name: Jellyfish Deploy Notification -on: - workflow_call: - inputs: - environment: - type: string - required: true - image_tag: - type: string - required: true - secrets: - jellyfish_api_token: - required: true - -jobs: - notify-jellyfish: - runs-on: ubuntu-latest - steps: - - name: Dynamically set timestamp var - run: echo TIMESTAMP_NOW=$(date --iso-8601=seconds) >> $GITHUB_ENV - - name: Notify Jellyfish of deployment - run: | - curl -i -X POST \ - -H 'Content-Type: application/json' \ - -H 'X-jf-api-token: ${{ secrets.jellyfish_api_token }}' \ - -d '{ - "reference_id": "${{ github.event.repository.name }}-${{ inputs.image_tag }}-${{ github.run_id }}", - "name": "${{ github.event.repository.name }} deployment of ${{ inputs.image_tag }} to ${{ inputs.environment }} complete", - "deployed_at": "${{ env.TIMESTAMP_NOW }}", - "repo_name": "${{ github.repository }}", - "commit_shas": ["${{ github.sha }}"], - "source_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}", - "is_successful": true - }' \ - https://webhooks.jellyfish.co/deployment