Setting up Continuous Integration with Bitbucket pipelines
Do you wanna set up continuous integration for your angular project using bitbucket pipelines? Here’s what can be done.
- If you want to use Simple Storage Service (S3), an Amazon Web Service for hosting your static website, then you need to start with creating your S3 bucket.
Under properties tab of that S3 bucket, enter the details and click save. Here’s an example.

2. Next, under the permissions tab, edit the bucket policy. Something like,

3. Also, make sure you have the AWS Access key and AWS secret access key values noted from the Identity access management (IAM) user, under the “My Security Credentials” on AWS management console.
4. Now, switch to your bitbucket account, login and navigate to the “Settings” page. Enable the pipelines feature and go to Environment Variables in the pipelines section.

5. Push the bitbucket-pipelines.yml file into your branch to implement pipelines that are triggered for staging and master branches. This can look something like this.

6. Also, push this shell script into your repo branch, that deploys by assigning the AWS credential values. For Ex:

Once you push or merge any code to staging or master branches, these pipelines should automatically get triggered. Hope you enjoy building continuous integration for your projects :)