Skip to content

Commit

Permalink
Merge pull request #8 from dealicious-inc/develop
Browse files Browse the repository at this point in the history
chore: change github action files
  • Loading branch information
dante-deali authored Aug 17, 2024
2 parents 8fa8a2f + e640724 commit 8dc7656
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 1 deletion.
61 changes: 61 additions & 0 deletions .github/workflows/item_mono.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# This is a basic workflow that is manually triggered

name: itsm_mono

# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
push:
# Inputs the workflow accepts.
branches: [main]
pull_request:
branches: [main]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "greet"
Build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v4

- name: Compile
run: echo Hello, Dealicious

DeployDev:
name: Deploy to Dev
if: github.event_name == 'pull_request'
needs: [Build]
runs-on: ubuntu-latest
environment:
name: Development
url: 'http://dev.myapp.com'
steps:
- name: Deploy
run: echo I am developing!

DeployStaging:
name: Deploy to Staging
if: github.event.ref == 'refs/heads/main'
needs: [Build]
runs-on: ubuntu-latest
environment:
name: Staging
url: 'http://test.myapp.com'
steps:
- name: Deploy
run: echo I am developing!

DeployProd:
name: Deploy to Production
needs: [DeployStaging]
runs-on: ubuntu-latest
environment:
name: Production
url: 'http://www.myapp.com'
steps:
- name: Deploy
run: echo I am deploying!
2 changes: 1 addition & 1 deletion .github/workflows/CICD.yml → .github/workflows/itsm.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow that is manually triggered

name: CI + CD
name: itsm

# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
Expand Down

0 comments on commit 8dc7656

Please sign in to comment.