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.
Select the right GitHub repository.
Navigate to Actions and click the New Workflow button.
You can use the link Set up a workflow yourself.
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.
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
Navigate to Actions > All workflows and you should be able to see the list of workflows and the corresponding workflow runs.