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_NANE
your Dockerhub user nameDOCKER_PASSWORD
your 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
Respositories
and create new one, in our casecontainers101/reactstarterkit
- Create
- Get the repository url and the region
- Get the
accessKeyId
and thesecretAccessKey
from the console settings
####Configuration in Codefresh: We assume you already forked this repo and create a service for it
- In
./codefresh.aws.ecr.example.yml
changebuild_step
configimage_name
should 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 Location
to be./codefresh.aws.ecr.example.yml
- Under Environment variables fill the next variables:
AWS_REGISTRY
to be the registry url (note that the url already have the repository name)AWS_ACCESS_KEY
your access key idAWS_SECRET_KEY
your secret keyAWS_REGION
the region of your registry Your screen should look like: