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 GitHub as their Git repository and CI/CD tool instead of GitLab.

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

  1. Select the right Github GitHub repository.

  2. Navigate to Actions Click on and click the New Workflow button.

...

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

...

  1. It This link creates a file in the .github/worflows/folder. Use the 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 of workflows and the corresponding workflow runs.

...