Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zafar Imam PR #38

Open
wants to merge 42 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
ddf9f89
aws.yml
khalids226 Sep 9, 2020
fe5633f
Edited and pushed to feature-new branch
SajidK25 Sep 9, 2020
c0ddcef
Merge pull request #1 from devskilldevops/khalids226-patch-1
khalids226 Sep 9, 2020
4aa647b
Create jekyll.yml
khalids226 Sep 9, 2020
0d90e67
Create aws1.yml
khalids226 Sep 9, 2020
1623de6
Create aws2.yml
khalids226 Sep 9, 2020
e004123
Update aws.yml
khalids226 Sep 9, 2020
2299f89
Delete jekyll.yml
khalids226 Sep 9, 2020
00d3d0d
Delete aws1.yml
khalids226 Sep 9, 2020
72e1457
Delete aws2.yml
khalids226 Sep 9, 2020
9c75040
Delete aws.yml
khalids226 Sep 9, 2020
ee61d60
from feature branch, part-1
AbdunNurTomal Sep 9, 2020
8ac9756
Merge pull request #1 from EcCHa2020/feature
AbdunNurTomal Sep 9, 2020
3757ce5
from feature branch, part-1-a
AbdunNurTomal Sep 9, 2020
44d84ba
Merge pull request #2 from EcCHa2020/feature
AbdunNurTomal Sep 9, 2020
8e9bc89
krelated
Sep 10, 2020
64c7c04
Merge pull request #3 from devskilldevops/krelated
khalids226 Sep 10, 2020
7e232ab
Change in index.php
akmrafiq Sep 10, 2020
6e6a395
create branch
invalid-email-address Sep 10, 2020
f03adb0
commit changes
Lutfar1996 Sep 14, 2020
b960feb
Merge pull request #1 from Lutfar1996/Lutfar1996-patch-1
Lutfar1996 Sep 14, 2020
62caae0
commit change
Lutfar1996 Sep 14, 2020
3f8a7c5
testing commits
Lutfar1996 Sep 14, 2020
d86c782
index file edited for creating simple PR
rezakhan995 Sep 14, 2020
8730647
Merge pull request #2 from SajidK25/feature-new
khalids226 Sep 15, 2020
e73ffd9
Merge pull request #4 from akmrafiq/feature/akm_rafiq
khalids226 Sep 15, 2020
9c6f7d9
Merge pull request #5 from AbdullahAlBahar/new_file
khalids226 Sep 15, 2020
7ac6e85
Merge pull request #6 from Lutfar1996/master
khalids226 Sep 15, 2020
1c7007d
Merge pull request #7 from rezakhan995/feature-hotfix
khalids226 Sep 15, 2020
5608019
index file changed for pr requst
Saimon-bd Sep 15, 2020
8e654e0
Merge pull request #9 from Saimon-bd/master
khalids226 Sep 15, 2020
478ea8f
Update and new line added in index.php
Saimon-bd Sep 15, 2020
690e609
Merge branch 'master' into test
Saimon-bd Sep 15, 2020
ceed09d
Merge pull request #1 from Saimon-bd/test
Saimon-bd Sep 15, 2020
084ff03
Merge pull request #10 from Saimon-bd/test
khalids226 Sep 16, 2020
a0eef0f
Merge pull request #11 from Saimon-bd/master
khalids226 Sep 16, 2020
d333a72
Update index.php
tanvircse Sep 16, 2020
c7c0e51
Merge branch 'master' into master
AbdunNurTomal Sep 16, 2020
b1bce6f
Merge pull request #13 from tanvircse/branch1
khalids226 Sep 16, 2020
d4592e6
Merge pull request #12 from EcCHa2020/master
khalids226 Sep 16, 2020
6d2a3bf
Update index.php
zafims Sep 17, 2020
0cd9bd4
Merge pull request #14 from zafims/master
khalids226 Sep 18, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Create aws2.yml
  • Loading branch information
khalids226 authored Sep 9, 2020
commit 1623de6c231c9841e5126cd7e349dfc37001ef01
80 changes: 80 additions & 0 deletions .github/workflows/aws2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# This workflow will build and push a new container image to Amazon ECR,
# and then will deploy a new task definition to Amazon ECS, when a release is created
#
# To use this workflow, you will need to complete the following set-up steps:
#
# 1. Create an ECR repository to store your images.
# For example: `aws ecr create-repository --repository-name my-ecr-repo --region us-east-2`.
# Replace the value of `ECR_REPOSITORY` in the workflow below with your repository's name.
# Replace the value of `aws-region` in the workflow below with your repository's region.
#
# 2. Create an ECS task definition, an ECS cluster, and an ECS service.
# For example, follow the Getting Started guide on the ECS console:
# https://us-east-2.console.aws.amazon.com/ecs/home?region=us-east-2#/firstRun
# Replace the values for `service` and `cluster` in the workflow below with your service and cluster names.
#
# 3. Store your ECS task definition as a JSON file in your repository.
# The format should follow the output of `aws ecs register-task-definition --generate-cli-skeleton`.
# Replace the value of `task-definition` in the workflow below with your JSON file's name.
# Replace the value of `container-name` in the workflow below with the name of the container
# in the `containerDefinitions` section of the task definition.
#
# 4. Store an IAM user access key in GitHub Actions secrets named `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`.
# See the documentation for each action used below for the recommended IAM policies for this IAM user,
# and best practices on handling the access key credentials.

on:
release:
types: [created]

name: Deploy to Amazon ECS

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Build, tag, and push image to Amazon ECR
id: build-image
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: my-ecr-repo
IMAGE_TAG: ${{ github.sha }}
run: |
# Build a docker container and
# push it to ECR so that it can
# be deployed to ECS.
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"

- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: sample-app
image: ${{ steps.build-image.outputs.image }}

- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def.outputs.task-definition }}
service: sample-app-service
cluster: default
wait-for-service-stability: true