<?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>DEV Community: Krishna P</title>
    <description>The latest articles on DEV Community by Krishna P (@learntech2022).</description>
    <link>https://dev.to/learntech2022</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1007356%2Fc7e4aa09-7cdb-4867-90b7-c82228c4d36a.png</url>
      <title>DEV Community: Krishna P</title>
      <link>https://dev.to/learntech2022</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/learntech2022"/>
    <language>en</language>
    <item>
      <title>Multiple images in bitbucket pipeline</title>
      <dc:creator>Krishna P</dc:creator>
      <pubDate>Mon, 16 Jan 2023 09:42:32 +0000</pubDate>
      <link>https://dev.to/learntech2022/multiple-images-in-bitbucket-pipeline-19j4</link>
      <guid>https://dev.to/learntech2022/multiple-images-in-bitbucket-pipeline-19j4</guid>
      <description>&lt;p&gt;we can have separate image for each step in the bitbucket pipeline as shown below&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pipelines:
  default:
    - step:
        name: Build and test
        **image: node:8.6**
        script:
          - npm install
          - npm test
          - npm run build
        artifacts:
          - dist/**
    - step:
        name: Deploy
        **image: python:3.5.1**
        trigger: manual
        script:
          - python deploy.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>bitbucket</category>
      <category>cicd</category>
      <category>devops</category>
    </item>
    <item>
      <title>How to include different image for each step in bitbucket pipeline</title>
      <dc:creator>Krishna P</dc:creator>
      <pubDate>Mon, 16 Jan 2023 06:26:02 +0000</pubDate>
      <link>https://dev.to/learntech2022/how-to-include-different-image-for-each-step-in-bitbucket-pipeline-jf2</link>
      <guid>https://dev.to/learntech2022/how-to-include-different-image-for-each-step-in-bitbucket-pipeline-jf2</guid>
      <description>&lt;p&gt;Bitbucket Pipelines is an integrated CI/CD service built into Bitbucket.It allows you to automatically build, test, and even deploy your code based on a configuration file in your repository.&lt;/p&gt;

&lt;p&gt;Usually all your steps runs inside the docker container in the cloud and you need a base image to run your build and other pipeline steps&lt;/p&gt;

&lt;p&gt;So this opens up two possible scenarios&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Entire bibucket-pipeline.yml file uses single image and you can mention at the beginning of your yml file like below
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;image: node:10.15.0

pipelines:
  default:
    - step:
        name: Build and test
        script:
          - npm install
          - npm test
    - step:
        name: Deploy
        script:
          - bin/deploy.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;above configuration works fine as long as it does not have any dependency on other image&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;If you want to use a python script for releasing and you need a python image to do that in that case you can do the following changes i,e you can add the particular image at the step level as shown below
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;image: node:10.15.0

pipelines:
  default:
    - step:
        name: Build and test
        script:
          - npm install
          - npm test
    - step:
        name: Deploy
        script:
          - bin/deploy.sh
    - step:
        name: Release
        image: python:3.7.2
        script:
          - bin/release-notes.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>aws</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>cloud</category>
    </item>
  </channel>
</rss>
