Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
7

Send an SMS via Twilio twilio

Send any SMS message using Twilio.

arguments

  • TWILIO_MESSAGE - Text of your message
  • TWILIO_PHONE_FROM - Phone number from which messages will be sent
  • TWILIO_PHONE_TO - Phone number to which messages will be sent
  • TWILIO_SID - Your account SID from Twilio console
  • TWILIO_TOKEN - Your API Auth Token from Twilio console
  • TWILIO_TYPE - Type of your message [build - send info about your build via Codefresh, default - Send message with statc text]
    twilio:
  type: twilio
  arguments:
    TWILIO_SID: ID
    TWILIO_TOKEN: '${{TWILIO_TOKEN}}'
    TWILIO_PHONE_FROM: '${{TWILIO_PHONE_FROM}}'
    TWILIO_TYPE: build

  
    twilio:
  type: twilio
  arguments:
    TWILIO_SID: ID
    TWILIO_TOKEN: '${{TWILIO_TOKEN}}'
    TWILIO_PHONE_FROM: '${{TWILIO_PHONE_FROM}}'
    TWILIO_MESSAGE: my message

  
github.com
Pasha Kostohrys
Jul 4, 2021