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

Dev branch to Main #65

Open
wants to merge 32 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
e6008c1
Create config.yml
girishpn Nov 27, 2019
20438a7
Update config.yml
girishpn Nov 27, 2019
599c1af
Create config.yml
girishpn Nov 27, 2019
fc071ed
Update config.yml
girishpn Nov 27, 2019
56bc851
Delete config.yml
girishpn Nov 27, 2019
75cdfcf
Update config.yml
girishpn Nov 27, 2019
761492d
Update config.yml
girishpn Nov 27, 2019
ca4864c
Update config.yml
girishpn Nov 27, 2019
31833d3
Update config.yml
girishpn Nov 27, 2019
bcaf9ac
Update config.yml
girishpn Nov 27, 2019
5075d05
Update config.yml
girishpn Nov 27, 2019
a241366
Update config.yml
girishpn Nov 27, 2019
ff8eb3e
Update config.yml
girishpn Nov 27, 2019
ca33df1
Update config.yml
girishpn Nov 27, 2019
084deb9
Update config.yml
girishpn Nov 27, 2019
2a4dfb5
Update config.yml
girishpn Nov 27, 2019
758a33e
Update config.yml
girishpn Nov 27, 2019
0a5f632
Update config.yml
girishpn Nov 27, 2019
07a9a85
Update config.yml
girishpn Nov 27, 2019
3426575
Update config.yml
girishpn Nov 27, 2019
d7228a9
Update config.yml
girishpn Nov 27, 2019
6100482
Update config.yml
girishpn Nov 27, 2019
e88a9ec
Update config.yml
girishpn Nov 27, 2019
8dad11c
Update config.yml
girishpn Nov 27, 2019
1907801
Update config.yml
girishpn Nov 27, 2019
049f39b
Update config.yml
girishpn Nov 27, 2019
d9f1996
Update config.yml
girishpn Nov 27, 2019
72aea7d
Update config.yml
girishpn Nov 27, 2019
8132a38
Update config.yml
girishpn Nov 27, 2019
3398f8c
Update config.yml
girishpn Nov 28, 2019
992a16e
Add or update the Azure App Service build and deployment workflow config
girishpn Aug 17, 2022
8f69496
first commit
Aug 17, 2022
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
39 changes: 39 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@

version: 2
jobs:
build:
docker:
- image: centos:latest
working_directory: /var/www/
environment:
BUILD_DIR: /var/www/
steps:

# install git
- run: yum update -y && yum install git -y

# checkout repository
- checkout

# install git submodules for managing third-party dependencies
- run: git submodule sync && git submodule update --init

- run:
name: install AWS CLI
command: |
yum makecache
yum -y install epel-release
yum makecache
yum clean all
yum -y install python3-pip
python3 -m pip install --upgrade pip
python3 -m pip install awscli
# Deploy
- deploy:
name: deploy to AWS
command: |
if [ "${CIRCLE_BRANCH}" = "master" ]; then
aws s3 sync $BUILD_DIR s3://hosthtml
else
echo "No master branch"
fi
60 changes: 60 additions & 0 deletions .github/workflows/master_cit-poc-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy PHP app to Azure Web App - cit-poc-test

on:
push:
branches:
- master
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'

- name: Check if composer.json exists
id: check_files
uses: andstor/file-existence-action@v1
with:
files: 'composer.json'

- name: Run composer install if composer.json exists
if: steps.check_files.outputs.files_exists == 'true'
run: composer validate --no-check-publish && composer install --prefer-dist --no-progress

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v2
with:
name: php-app
path: .

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v2
with:
name: php-app

- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v2
id: deploy-to-webapp
with:
app-name: 'cit-poc-test'
slot-name: 'Production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_0E4627800AAE43CA938E453747BB30F7 }}
package: .
2 changes: 1 addition & 1 deletion content/home.phtml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<p>This is <b>home</b> page.Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<p>This is <b>CIT-POC</b> page.Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>