| pipeline name | Last build status |
|---|---|
| Build-first-image | |
| Build-codefresh-yml |
Setup your first service using Codefresh.
Select the repo you just forked and click next
Review the Dockerfile, click next than
Make yourself a cup of coffee in the time we build an image for you
Now when your first service is setup and your first pipeline produced an image, lets move forward and push the image to Dockerhub registry.
We at Codefresh already build for you the basic codefresh.yml template, use it.
- Click on your service
react-starter-kit. - Switch to
Use YML build. - Under Environment variables fill your Dockerhub credentials to be.
DOCKER_USER_NANEyour Dockerhub user nameDOCKER_PASSWORDyour Dockerhub password
- Dont forget to encrypt them!
- Save your updated pipeline
- Build and launch
Full credit for the application react-starter-kit
- registry url
- accessKeyId
- secretAccessKey
- region
- Go to Amazon console
- Open
EC2 Container Service - Open
Respositoriesand create new one, in our casecontainers101/reactstarterkit - Create
- Get the repository url and the region
- Get the
accessKeyIdand thesecretAccessKeyfrom the console settings
####Configuration in Codefresh: We assume you already forked this repo and create a service for it
- In
./codefresh.aws.ecr.example.ymlchangebuild_stepconfigimage_nameshould be the new name of your repository.- Push your change
- Open the service and add new pipeline
- Switch to
Use YML build - Change the
YML File Locationto be./codefresh.aws.ecr.example.yml - Under Environment variables fill the next variables:
AWS_REGISTRYto be the registry url (note that the url already have the repository name)AWS_ACCESS_KEYyour access key idAWS_SECRET_KEYyour secret keyAWS_REGIONthe region of your registry Your screen should look like:













