Versions Compared

Key

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

This guide is intended for partners and customers who want to use their own Github as their Git repository and CI/CD tool instead of GitLab.

Before you start, make sure you have sufficient rights in Github.

  1. Select the right Github repository.

  2. Navigate to Actions Click on New Workflow button

...

  1. you can use the link for Set up a workflow yourself

...

  1. It creates a file in “.github/worflows/” folder. Use standard naming github-ci.yml and add the below content to the file

...

Code Block
name: Deploy
 
on:
  push:
    branches:
      - main
 
env:
  URL: "https://qa.pricefx.com"
  PARTITION: "sandbox-qa"
 
jobs:
  deploy:
    name: Deploy
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
 
      - name: Deploy with pfxpackage
        #env:
          #PFX_USER: should be set as masked variable in project's settings on Github -> Settings -> CI/CD -> Variable [TODO: modify this as per Github @udayvala] 
          #PFX_PASS: the same applies to PFX_PASS do not ever put it here
        run:
          docker run --rm -v $(pwd):$(pwd) -w $(pwd) pricefx/pfxpackage pfxpackage -import -timeout 120 -url $URL -user $PFX_USER -password $PFX_PASS -partition $PARTITION -from . $OPTIONS
  1. Navigate to Actions > All workflows and you should be able to see the list

image-20240506-205413.pngImage Added