Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate static files #29

Merged
merged 1 commit into from
Nov 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/shared-ext-ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ on:
required: false
default: ''
type: string
enableArtifactoryPip:
description: 'Enable PIP access to artifactory'
required: false
default: false
type: boolean
enableUploadDocker:
description: 'Enable docker upload step. NOTE: Docker images will only be uploaded if the build is on a tag.'
required: false
Expand All @@ -36,6 +41,12 @@ on:
COMMONTOOLING_DEPLOY_KEY:
description: 'A deploy key that may be used to fetch Commontooling'
required: true
ARTIFACTORY_USERNAME:
description: 'An artifactory username with read/write access'
required: false
ARTIFACTORY_TOKEN:
description: 'An artifactory token with read/write access'
required: false
AWS_ACCOUNT_ID:
description: 'An AWS Account ID'
required: true
Expand Down Expand Up @@ -110,6 +121,18 @@ jobs:
- name: Create pip conf
run: touch ${{ github.workspace }}/.pip.conf

- name: ${{ format('{0}Configure Artifactory PIP registry', ((!inputs.enableArtifactoryPip) && 'NOT ENABLED | ' || '') ) }}
if: ${{ inputs.enableArtifactoryPip }}
run: |
touch ${{ github.workspace }}/.pip.conf
cat <<EOF >> ${{ github.workspace }}/.pip.conf
[global]
extra-index-url = https://${{ secrets.ARTIFACTORY_USERNAME }}:${{ secrets.ARTIFACTORY_TOKEN }}@api.artifactory.labs.bbc/artifactory/api/pypi/ap-python/simple/

[search]
extra-index = https://${{ secrets.ARTIFACTORY_USERNAME }}:${{ secrets.ARTIFACTORY_TOKEN }}@api.artifactory.labs.bbc/artifactory/api/pypi/ap-python/
EOF

###############
## Run tests ##
###############
Expand Down Expand Up @@ -159,6 +182,15 @@ jobs:
with:
path: './docs'

######################
## Post-Job cleanup ##
######################

- name: Post job - cleanup pip config
if: ${{ always() }}
run: |
rm ${{ github.workspace }}/.pip.conf

DeployPages:
name: Deploy Pages
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
Expand Down