Has anyone successfully 'deployed' using gitlab's ...
# sdf
d
Has anyone successfully 'deployed' using gitlab's CI/CD using suitelcoud CLI?
👍 1
p
Not Gitlab but CircleCI, seems to work quite fine right now. Evaluating against UAT sandbox before for a while before I’ll let it deploy to prod
s
I am trying using SuiteCloud CLI for Nodejs on gitlab, but failed. Any suggestion?
d
I'm trying to get an example or 2 @seanlin
s
I just made it work for cli for nodejs
this is my sample gitlab-ci.yml
Copy code
image: adoptopenjdk/openjdk11:jre-11.0.8_10-ubuntu

stages:
  - deploy

before_script:
  - apt-get update -y
  - apt-get upgrade -y
  - apt-get -y install curl dirmngr apt-transport-https lsb-release ca-certificates
  - curl -sL <https://deb.nodesource.com/setup_14.x> | bash -
  - apt-get install nodejs -y
  - apt-get -y install gcc g++ make vim
  - npm -g config set user root
  - npm install -g yarn
  - npm install -g @oracle/suitecloud-cli
#  - yarn

develop0:
  variables:
    NsAccountId: $dev0_account_id
    AuthId: $dev0_auth_id
    NsTokenId: $dev0_token_id
    NsTokenSecret: $dev0_token_secret
  stage: deploy
  script:
    - suitecloud account:ci --account $NsAccountId --authid $AuthId --savetoken --tokenid $NsTokenId --tokensecret $NsTokenSecret
    - suitecloud project:deploy
  only:
    - develop