Skip to content
This repository has been archived by the owner on Feb 7, 2025. It is now read-only.

Commit

Permalink
Update GitHub actions to do nothing with the IG
Browse files Browse the repository at this point in the history
  • Loading branch information
halprin committed Sep 10, 2024
1 parent 5221691 commit 01aa90b
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 51 deletions.
1 change: 0 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ jobs:
with:
ENVIRONMENT: stg
REPO: trusted-intermediary-router
REPO_DOCS: trusted-intermediary-docs
APP: ${{ needs.terraform-deploy.outputs.APP }}
REGISTRY: ${{ needs.terraform-deploy.outputs.REGISTRY }}
secrets:
Expand Down
46 changes: 0 additions & 46 deletions .github/workflows/deploy_reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ on:
REPO:
required: true
type: string
REPO_DOCS:
required: true
type: string
APP:
required: true
type: string
Expand Down Expand Up @@ -82,14 +79,6 @@ jobs:
file: ./Dockerfile
context: .

- name: Build and push documentation container image to registry
uses: docker/build-push-action@v6
with:
push: true
tags: '${{ inputs.REGISTRY }}/${{ inputs.REPO_DOCS }}:${{ github.sha }}'
file: ./ig/Dockerfile
context: ./ig

deploy:
runs-on: ubuntu-latest
needs: build
Expand Down Expand Up @@ -121,38 +110,3 @@ jobs:
with:
inlineScript: |
az webapp deployment slot swap -n ${{ inputs.APP }} --slot pre-live --resource-group csels-rsti-${{ inputs.ENVIRONMENT }}${{ github.event.number }}-moderate-rg
- name: Retrieve registry password
id: retrieve-registry-password
uses: azure/CLI@v2
with:
inlineScript: |
ACR_PASSWORD=$(az acr login --name ${{ inputs.REGISTRY }} --expose-token --output tsv --query accessToken)
echo "::add-mask::$ACR_PASSWORD"
echo "ACR_PASSWORD=$ACR_PASSWORD" >> "$GITHUB_OUTPUT"
- name: Log in to registry
uses: docker/login-action@v3
with:
registry: ${{ inputs.REGISTRY }}
username: 00000000-0000-0000-0000-000000000000
password: ${{ steps.retrieve-registry-password.outputs.ACR_PASSWORD }}

- name: Extract generated documentation from the documentation image
id: extract
uses: shrink/actions-docker-extract@v3
with:
image: '${{ inputs.REGISTRY }}/${{ inputs.REPO_DOCS }}:${{ github.sha }}'
path: /trusted-intermediary/output/.

- name: Upload docs to blob storage
uses: azure/CLI@v2
with:
inlineScript: |
if [ "${{ inputs.ENVIRONMENT }}" == "pr" ]; then
MODIFIED_ENVIRONMENT=${{ inputs.ENVIRONMENT }}${{ github.event.number }}
else
MODIFIED_ENVIRONMENT=${{ inputs.ENVIRONMENT }}
fi
az storage blob sync --account-name cdcti${MODIFIED_ENVIRONMENT}docs -c '$web' -s ${{ steps.extract.outputs.destination }}
1 change: 0 additions & 1 deletion .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:
with:
ENVIRONMENT: dev
REPO: trusted-intermediary-router
REPO_DOCS: trusted-intermediary-docs
APP: ${{ needs.terraform-deploy.outputs.APP }}
REGISTRY: ${{ needs.terraform-deploy.outputs.REGISTRY }}
secrets:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/internal-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ jobs:
with:
ENVIRONMENT: internal
REPO: trusted-intermediary-router
REPO_DOCS: trusted-intermediary-docs
APP: ${{ needs.terraform-deploy.outputs.APP }}
REGISTRY: ${{ needs.terraform-deploy.outputs.REGISTRY }}
secrets:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/prod-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
with:
ENVIRONMENT: prd
REPO: trusted-intermediary-router
REPO_DOCS: trusted-intermediary-docs
APP: ${{ needs.terraform-deploy.outputs.APP }}
REGISTRY: ${{ needs.terraform-deploy.outputs.REGISTRY }}
secrets:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/terraform-ci-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ jobs:
with:
ENVIRONMENT: pr
REPO: trusted-intermediary-router
REPO_DOCS: trusted-intermediary-docs
APP: ${{ needs.terraform-deploy.outputs.APP }}
REGISTRY: ${{ needs.terraform-deploy.outputs.REGISTRY }}
secrets:
Expand Down

0 comments on commit 01aa90b

Please sign in to comment.