This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
16 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 |
---|---|---|
|
@@ -8,10 +8,12 @@ on: | |
- main | ||
|
||
# Set up permissions for deploying with secretless Azure federated credentials | ||
# https://learn.microsoft.com/en-us/azure/developer/github/connect-from-azure?tabs=azure-portal%2Clinux#set-up-azure-login-with-openid-connect-authentication | ||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
@@ -24,24 +26,8 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Remove existing containerd if it exists | ||
run: | | ||
sudo apt-get remove -y containerd || true | ||
- name: Install Docker | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y docker.io | ||
sudo systemctl start docker | ||
sudo systemctl enable docker | ||
- name: Verify Docker installation | ||
run: docker --version | ||
|
||
- name: Install azd | ||
uses: Azure/[email protected] | ||
|
||
- name: Log in with Azure (Federated Credentials) | ||
run: | | ||
azd auth login ` | ||
|
@@ -50,6 +36,7 @@ jobs: | |
--tenant-id "$Env:AZURE_TENANT_ID" | ||
shell: pwsh | ||
|
||
|
||
- name: Provision Infrastructure | ||
run: azd provision --no-prompt | ||
env: | ||
|