-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use SP authentication in containers.yaml (#341)
* Use SP authentication in containers.yaml * Update containers.yaml * Update delete-container-tag.yaml Fix warning * Format files * Update containers.yaml * Update containers.yaml --------- Co-authored-by: Damon Bayer <[email protected]>
- Loading branch information
1 parent
d8534e9
commit 800a23f
Showing
2 changed files
with
13 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,16 +20,23 @@ jobs: | |
name: Build and push image | ||
|
||
steps: | ||
- name: Login to Azure | ||
id: azure_login_2 | ||
uses: azure/login@v2 | ||
with: | ||
creds: ${{ secrets.EDAV_STF_SERVICE_PRINCIPAL }} | ||
|
||
- name: Login to ACR | ||
run: az acr login --name ${{ vars.CONTAINER_REGISTRY_NAME }} | ||
|
||
- name: Build and push image | ||
id: build-push | ||
uses: CDCgov/cfa-actions/[email protected].0 | ||
uses: CDCgov/cfa-actions/[email protected].1 | ||
with: | ||
registry: ${{ vars.CONTAINER_REGISTRY_NAME }}.azurecr.io/ | ||
container-file-1: ./Containerfile.dependencies | ||
container-file-2: ./Containerfile | ||
first-step-cache-key: docker-dependencies-${{ runner.os }}-${{ hashFiles('./Containerfile.dependencies') }} | ||
registry: ${{ vars.CONTAINER_REGISTRY }} | ||
username: ${{ vars.CONTAINER_REGISTRY_USERNAME }} | ||
password: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }} | ||
image: ${{ env.IMAGE_NAME }} | ||
build-args-2: | | ||
TAG=${{ steps.image.outputs.tag }} | ||
|
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