message: Filter inside workflow instead of job
diff: @@ -239,7 +239,7 @@ jobs:
  when: always
  - when:
  condition:
  - equal: [ master, master ]
  + equal: [ master, << pipeline.git.branch >> ]
  steps:
  - run: |
  gcloud container images add-tag gcr.io/${GOOGLE_PROJECT_ID}/test-image:latest gcr.io/${GOOGLE_PROJECT_ID}/test-image:${CIRCLE_SHA1} --quiet
  @@ -260,15 +260,16 @@ jobs:
  steps:
  - checkout:
  path: ~/GaloyApp
  - - when:
  - condition:
  - equal: [ master, master ]
  - steps:
  - - run: |
  + - run:
  + name: Authenticate on gcloud
  + command: |
  echo ${GCLOUD_SERVICE_KEY} > gcloud-service-key.json
  gcloud auth activate-service-account --key-file=gcloud-service-key.json
  gcloud config set project ${GOOGLE_PROJECT_ID}
  gcloud container clusters get-credentials mainnet --region us-central1-a --project ${GOOGLE_PROJECT_ID}
  + - run:
  + name: Upgrade prometheus and graphql servers
  + command: |
  export MACAROON=$(kubectl exec lnd-container-0 -- base64 /root/.lnd/data/chain/bitcoin/mainnet/admin.macaroon | tr -d '\n\r')
  export TLS=$(kubectl exec lnd-container-0 -- base64 /root/.lnd/tls.cert | tr -d '\n\r')
  helm upgrade -i graphql -f ~/GaloyApp/backend/graphql-chart/mainnet-values.yaml \
  @@ -287,10 +288,22 @@ workflows:
  type: approval
  requires:
  - test
  + filters:
  + branches:
  + only:
  + - master
  - slack/approval-notification:
  mentions: 'U011J7RCEFQ,U011KKL1L4B'
  requires:
  - test
  + filters:
  + branches:
  + only:
  + - master
  - mainnet_deploy:
  requires:
  - approve_mainnet_deploy
  + filters:
  + branches:
  + only:
  + - master
  