Skip to content

Commit

Permalink
demo-modification
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Apr 3, 2022
1 parent 7711e91 commit cb69cae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM 436174799454.dkr.ecr.us-east-1.amazonaws.com/httpd24:latest
#FROM httpd:2.4
FROM httpd:2.4
MAINTAINER Varun
COPY ./index.html /usr/local/apache2/htdocs/
EXPOSE 80
6 changes: 3 additions & 3 deletions buildspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ phases:
commands:
- echo Build started on `date`
- echo Building the Docker image...
- docker build -t web:1 .
- docker tag web:1 436174799454.dkr.ecr.us-east-1.amazonaws.com/cicd-repo:latest
- docker build -t demo-doc-repo .
- docker tag demo-doc-repo:latest 436174799454.dkr.ecr.us-east-1.amazonaws.com/demo-doc-repo:latest
post_build:
commands:
- echo Build completed on `date`
- echo Pushing the Docker image...
- docker push 436174799454.dkr.ecr.us-east-1.amazonaws.com/cicd-repo:latest
- docker push 436174799454.dkr.ecr.us-east-1.amazonaws.com/demo-doc-repo:latest
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
<body>

<h1>DevOps by Varun </h1>

<h2>version 1.0 </h2>

<p>My first CICD pipeline.</p>

</body>
</html>in
</html>

0 comments on commit cb69cae

Please sign in to comment.