diff --git a/.github/workflows/item_mono.yml b/.github/workflows/item_mono.yml new file mode 100644 index 0000000..ab37f53 --- /dev/null +++ b/.github/workflows/item_mono.yml @@ -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! diff --git a/.github/workflows/CICD.yml b/.github/workflows/itsm.yml similarity index 99% rename from .github/workflows/CICD.yml rename to .github/workflows/itsm.yml index 0b629a1..3319470 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/itsm.yml @@ -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.