Skip to content
This repository was archived by the owner on Mar 9, 2024. It is now read-only.

Conversation

@manjumh021
Copy link

No description provided.

…nt for production server which is running in aws instance
@manjumh021
Copy link
Author

Hi Team I have implemented GitHub action for continuous deployment, please review and merge.
for review I have added the loom video in my private channel

@senguttuvang
Copy link

@manjumh021 Please attach a loom video explaining how it works and also the working demo/output

@senguttuvang
Copy link

test

@manjumh021
Copy link
Author

manjumh021 commented Nov 18, 2022

In the following video I have given demonstration Sir. How we can use this GitHub action file for deployment
demo on continuous deployment of Snipe IT

  1. Let's assume one production server is running in the AWS ec2 instance with all necessary configurations.
  2. If the owner of the repository, merge code changes to the main branch after accepting the pull requests. Automatically this following GitHub action will trigger due to push or pull request event happened.
  3. During execution this GitHub action will send the commands to the ec2 instance which are mentioned in the commands step
# the below commands executes in the EC2 instance where already Snipe-IT is running.
          # 1. fetch changes from remote repository. 
          # 2. pull the latest codes from main branch.
          # 3. deploy the changes.
          command: |
            git fetch --all
            git pull origin main
            docker-compose up -d
            ```

@tejapearlthoughts
Copy link

tejapearlthoughts commented Nov 18, 2022

@manjumh021

Did you test in your repo & target environment?

https://github.com/manjumh021/Snipe-IT-GitHub-Actions/actions

_ can you please share the loom video link ..

above link in previous comment is redirecting to slack
image

@manjumh021
Copy link
Author

manjumh021 commented Nov 19, 2022

Yes @tejapearlthoughts it was tested in manjumh021/Snipe-IT repository
Here is the link for the results
continuous deployment action results

@senguttuvang senguttuvang changed the title github-actions/continuous-deployment: Implemented continuous deployment for production server which is running in aws instance [Draft] github-actions/continuous-deployment: Implemented continuous deployment for production server which is running in aws instance Nov 21, 2022
@manjumh021 manjumh021 changed the title [Draft] github-actions/continuous-deployment: Implemented continuous deployment for production server which is running in aws instance github-actions/continuous-deployment: Implemented continuous deployment for production server which is running in aws instance Nov 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants