Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
name: Deploy
on:
  push:
    branches: 
      - main
      - qa
      
env:
  PFX_USER: ${{ vars.PFX_USER }}
  PFX_PASS: ${{ secrets.PFX_PASS }}

jobs:
  deploy:
    runs-on: ubuntu-latest
    container: pricefx/pfxpackage

    steps:
      - name: Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
        uses: actions/checkout@v4

      - name: PROD - Deploys your logic and other artifacts to the partition using pfxpackage docker image
        if: github.ref == 'refs/heads/main'
        env:
          URL: 'https://customer.pricefx.com'
          PARTITION: 'customer'
          PFX_USER: ${{ vars.PFX_USER }}
  
       PFX_PASS: ${{ secrets.PFX_PASS }}
        run: pfxpackage -import -timeout 120 
          -url $URL -user $PFX_USER -password $PFX_PASS -partition $PARTITION 
          -from $GITHUB_WORKSPACE $OPTIONS

      - name: QA - Deploys your logic and other artifacts to the partition using pfxpackage docker image
        if: github.ref == 'refs/heads/qa'
        env:
          URL: 'https://customer-qa.pricefx.com'
          PARTITION: 'customer-qa'
          PFX_USER: ${{ vars.PFX_USER }}
          PFX_PASS: ${{ secrets.PFX_PASS }}
        run: pfxpackage -import -timeout 120 
          -url $URL -user $PFX_USER -password $PFX_PASS -partition $PARTITION 
          -from $GITHUB_WORKSPACE $OPTIONS

...