<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>The Ops Community ⚙️: Bawantha Thilan</title>
    <description>The latest articles on The Ops Community ⚙️ by Bawantha Thilan (@bawanthathilan).</description>
    <link>https://community.ops.io/bawanthathilan</link>
    <image>
      <url>https://community.ops.io/images/Ac_xrW_do_gCZwhUu_Rko2eriOztUqwZHc3juWscuc8/rs:fill:90:90/g:sm/mb:500000/ar:1/aHR0cHM6Ly9jb21t/dW5pdHkub3BzLmlv/L3JlbW90ZWltYWdl/cy91cGxvYWRzL3Vz/ZXIvcHJvZmlsZV9p/bWFnZS85MTAvZWU1/OGIzYTgtOTlhMy00/YTMwLTgxNGQtODI1/NWMzZDcyOGUxLnBu/Zw</url>
      <title>The Ops Community ⚙️: Bawantha Thilan</title>
      <link>https://community.ops.io/bawanthathilan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://community.ops.io/feed/bawanthathilan"/>
    <language>en</language>
    <item>
      <title>How to use custom variables in GitLab CICD pipeline</title>
      <dc:creator>Bawantha Thilan</dc:creator>
      <pubDate>Sat, 25 Jun 2022 15:56:41 +0000</pubDate>
      <link>https://community.ops.io/bawanthathilan/how-to-use-custom-variables-in-gitlab-cicd-pipeline-i9f</link>
      <guid>https://community.ops.io/bawanthathilan/how-to-use-custom-variables-in-gitlab-cicd-pipeline-i9f</guid>
      <description>&lt;p&gt;In this article I will show how to use custom variables in your GitLab CICD pipeline.&lt;/p&gt;

&lt;p&gt;GitLab has 2 types of variable&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Predefined Variables - &lt;a href="https://docs.gitlab.com/omnibus/development/ci-variables.html#ci-variables"&gt;CI Variables&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Define own variable -  we can create our own variables&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is a simple use case where we can use variables in our pipeline&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;let say you want to run pipeline for multiple microservices that your team is developing and we want to pass microservice name to our pipeline&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  first define your variables in GitLab project settings
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;key - variable name&lt;/li&gt;
&lt;li&gt;value - variable value&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  And now we can use our variables in cicd pipeline
&lt;/h3&gt;

&lt;p&gt;you can use this in your pipeline by putting a &lt;strong&gt;$&lt;/strong&gt; sign in front of your variable name&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;ex - $MICRO_SERVICE_NAME&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;stages:
  - test

run_unit_test:
  stage: test
  before_script:
    - echo "Prepearing test data..."
  script:
    - echo "Running unit tests for microservice $MICRO_SERVICE_NAME ..."
  after_script:
    - echo "Cleaning up temporary files.."
    - rm -r test-data
    - ls


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Thank you :)&lt;/p&gt;

</description>
      <category>devops</category>
      <category>tutorials</category>
      <category>cicd</category>
      <category>gitl</category>
    </item>
    <item>
      <title>How to use Azure Queue Storage from NEXT JS</title>
      <dc:creator>Bawantha Thilan</dc:creator>
      <pubDate>Sat, 18 Jun 2022 15:52:23 +0000</pubDate>
      <link>https://community.ops.io/bawanthathilan/how-to-use-azure-queue-storage-from-next-js-41bi</link>
      <guid>https://community.ops.io/bawanthathilan/how-to-use-azure-queue-storage-from-next-js-41bi</guid>
      <description>&lt;p&gt;Video - &lt;a href="https://www.youtube.com/watch?v=QMHSdvgL9G0&amp;amp;t=55s"&gt;Youtube Video&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
