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 - qa 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
Navigate to Actions > All workflows and you should be able to see the list of workflows and the corresponding workflow runs.
GitHub Actions will always download the latest pricefx/pfxpackage docker image from the registry