generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into vpn-wants-standard-static-ip
- Loading branch information
Showing
14 changed files
with
270 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Terraform CI Destroy | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
|
||
jobs: | ||
|
||
paths-filter: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
operations: ${{ steps.filter.outputs.operations }} | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
# keep in sync with terraform-ci-deploy.yml | ||
- uses: dorny/paths-filter@v3 | ||
id: filter | ||
with: | ||
filters: | | ||
operations: | ||
- 'operations/environments/pr/**' | ||
- 'operations/template/**' | ||
destroy-environment: | ||
name: Destroy PR Environment | ||
environment: | ||
name: pr | ||
needs: | ||
- paths-filter | ||
if: needs.paths-filter.outputs.operations == 'true' | ||
runs-on: ubuntu-latest | ||
env: | ||
ARM_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }} | ||
ARM_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} | ||
ARM_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | ||
ARM_USE_OIDC: true | ||
permissions: | ||
id-token: write | ||
contents: read | ||
defaults: | ||
run: | ||
working-directory: operations/environments/pr | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Terraform Init | ||
run: terraform init -backend-config="key=pr_${{ github.event.number }}.tfstate" | ||
|
||
- name: Terraform Destroy | ||
run: terraform destroy -auto-approve -input=false -var="pr_number=${{ github.event.number }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
.../java/gov/hhs/cdc/trustedintermediary/etor/metadata/partner/PartnerMetadataConverter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package gov.hhs.cdc.trustedintermediary.etor.metadata.partner; | ||
|
||
import gov.hhs.cdc.trustedintermediary.etor.operationoutcomes.FhirMetadata; | ||
|
||
public interface PartnerMetadataConverter { | ||
|
||
/** | ||
* This method will convert {@link PartnerMetadata} and convert it into an {@link | ||
* org.hl7.fhir.r4.model.OperationOutcome} | ||
* | ||
* @param metadata | ||
* @param requestedId | ||
* @return | ||
*/ | ||
FhirMetadata<?> extractPublicMetadataToOperationOutcome( | ||
PartnerMetadata metadata, String requestedId); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.