Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
anys34 committed Aug 25, 2024
1 parent bfb47dd commit e572ae4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 21 deletions.
22 changes: 2 additions & 20 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build, Push Docker Image, and Deploy to Azure
name: Build and Push Docker Image

on:
push:
Expand Down Expand Up @@ -32,22 +32,4 @@ jobs:
run: docker build -t anys34/five:latest .

- name: Push Docker image
run: docker push anys34/five:latest

- name: Install Azure CLI
uses: azure/setup-azure-cli@v2

- name: Azure Login
run: |
az login --service-principal \
-u ${{ secrets.AZURE_CLIENT_ID }} \
-p ${{ secrets.AZURE_SECRET }} \
-t ${{ secrets.AZURE_TENANT }}
- name: Deploy to Azure Container Apps
run: |
az account set --subscription ${{ secrets.AZURE_SUBSCRIPTION }}
az containerapp update \
--name five \
--resource-group rg-FiveSelves \
--image anys34/five:latest
run: docker push anys34/five:latest
2 changes: 1 addition & 1 deletion src/main/java/com/anys34/fiveselves/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public String hello() {
}
@GetMapping("/hello")
public String hello2() {
return "Hello World!";
return "Hello World!2";
}
}

0 comments on commit e572ae4

Please sign in to comment.