Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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

image-20240506-203946.png
  1. you can use the link for Set up a workflow yourself

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

image-20240506-204512.png
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

image-20240506-205413.png

  • No labels