-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Fredrick/issue 314/git action integration #346
Open
iamfredrickokereke
wants to merge
28
commits into
TheIOFoundation:master
Choose a base branch
from
iamfredrickokereke:fredrick/issue-314/git-action-integration
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 11 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
5b5ffd8
Create backend.yml
iamfredrickokereke 7dcac5e
Merge pull request #1 from iamfredrickokereke/iamfredrickokereke-patch-1
iamfredrickokereke 1f0a03c
Create azure.yml
iamfredrickokereke 89f1215
Update backend.yml
iamfredrickokereke 0bcef7c
improved ci with actions
iamfredrickokereke 7ad22c5
improved comment
iamfredrickokereke e8d491c
improved the action and comment description
iamfredrickokereke 9c17a85
updated secrets and node version
iamfredrickokereke 1111eb2
removed declared env variable
iamfredrickokereke 573edbc
refactored according to suggested changes in comment
iamfredrickokereke d0e35cc
fixed an omission
iamfredrickokereke e09ab9b
Merge branch 'TheIOFoundation:master' into fredrick/issue-314/git-act…
iamfredrickokereke 24dcca2
Update backend.yml
iamfredrickokereke 6a7e8c7
removed secrets
iamfredrickokereke 961765b
Update backend.yml
iamfredrickokereke 40b0436
added npm build and test setup
iamfredrickokereke 6a22b8c
added and updated package.json file
iamfredrickokereke 3daccc6
updated node version
iamfredrickokereke a545357
Update package.json
iamfredrickokereke da401ff
cleared npm cache
iamfredrickokereke 0810ad2
old entry removed and package.json file updated to version 2.0.0 from…
iamfredrickokereke ce0ab0f
removed the package.json files outside API directory
iamfredrickokereke 8f1a102
added passWithNoTest Flag
iamfredrickokereke 65c3eff
removed the push to master if check
iamfredrickokereke 674f55d
added deploy to azure actions with secret variable
iamfredrickokereke f5bcae8
Merge branch 'master' into fredrick/issue-314/git-action-integration
iamfredrickokereke 976b18c
added the if clause to push to master
iamfredrickokereke bf2b1c0
Update backend.yml
iamfredrickokereke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# This is a basic workflow to help deploy the backend code to Azure server | ||
# it triggers on push and pull request events to the master branch | ||
# it runs the jobs on the API/ directory and deploys using secret credentials | ||
# Update the secret credentials with details from the Azure web server. | ||
|
||
name: "Pipeline for Azure webapp deployment" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: [opened, synchronize, reopened, closed] | ||
branches: | ||
- master | ||
jobs: | ||
build_and_deploy: | ||
name: Build test and Deploy Node App to Azure | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "14.x" | ||
- name: npm install, build, and test | ||
run: | | ||
cd API/ | ||
npm install | ||
npm run build --if-present | ||
npm run test --if-present | ||
echo Successful | ||
- if: github.ref == 'refs/heads/master' && job.status == 'success' | ||
run: | | ||
git push -u origin HEAD:master -f | ||
|
||
- name: "Deploy to Azure" | ||
uses: azure/webapps-deploy@v2 | ||
with: | ||
app-name: ${{ secrets.AZURE_WEBAPP_NAME }} | ||
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} | ||
package: ${{ secrets.AZURE_WEBAPP_PACKAGE_PATH }} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is all that is needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay I will correct it now, sorry I did not get any notification on my mail, hence my delayed response.