Skip to content

Update build.yml

Update build.yml #2

Workflow file for this run

name: Build Filer
on:
push:
permissions:
id-token: write
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Assume Role
uses: aws-actions/configure-aws-credentials@master
with:
aws-region: ${{ secrets.REGION }}
role-to-assume: arn:aws:iam::${{ secrets.ACCOUNT_NUMBER }}:role/service/${{ secrets.ROLE_NAME }}
- name: Get Gorson
shell: bash
run: |
wget -O /usr/local/bin/gorson https://github.com/pbs/gorson/releases/download/4.0.0/gorson-4.0.0-linux-amd64
chmod +x /usr/local/bin/gorson
- name: Get Pypirc Config
shell: bash
run: |
touch .pypirc
echo -e "[distutils]\nindex-servers = nexuspbs-internal\n\n[nexuspbs-internal]\n" > .pypirc
echo -e "repository: $(gorson get /WS/BENTO3/QA/COMMON/NEXUS/NEXUSPBS_INTERNAL | jq -r ".repository")\n" >> .pypirc
echo -e "username: $(gorson get /WS/BENTO3/QA/COMMON/NEXUS/NEXUSPBS_INTERNAL | jq -r ".username")\n" >> .pypirc
echo -e "password: $(gorson get /WS/BENTO3/QA/COMMON/NEXUS/NEXUSPBS_INTERNAL | jq -r ".password")\n" >> .pypirc
cat pypirc