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 Click on New Workflow button
...
you can use the link for Set up a workflow yourself
...
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 |
Navigate to Actions > All workflows and you should be able to see the list