- Click on
Add step-
Go to builds and click on run
-
Change the settings as following:
-
Name:
create Docker file -
Container registry: Click on the Docker connecter created in the previous step
-
Image:
alpine -
Commands: Copy the following command and click on apply changes.
touch pythondockerfile cat > pythondockerfile <<- EOM FROM python:3.10.6-alpine WORKDIR /python-pipeline-samples ADD . /python-pipeline-samples RUN pip install -r requirements.txt CMD ["python" , "app.py"] EOM cat pythondockerfile
-

-
- Click on
Add step - Go to
buildsand click onbuild and push an image to docker registry - Change the settings as following:
- Name:
Build and push image to docker hub - Docker connector: select the Docker connector you created previously
- Docker repository:
<docker-hub-username>/<docker-repository name> - Tags:
latest - In the optional Configuration
- Dockerfile -
pythondockerfile
- Dockerfile -
- Name:
Now we move to Integration Testing and running our Pipeline
Click on Integration Test and Run Pipeline
