Skip to content

Commit

Permalink
add cli
Browse files Browse the repository at this point in the history
  • Loading branch information
gamboaalejandro committed Oct 22, 2023
1 parent 253b198 commit f2bfd08
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/docker-CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI/CD to Azure Container Instance

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Login to Docker Hub
run: docker login -u ${{ secrets.USER }} -p ${{ secrets.password }}

- name: Build and push Docker image
run: |
docker build -t ${{ secrets.USER }}/myapp:${{ github.sha }} .
docker push ${{ secrets.password }}/myapp:${{ github.sha }}
- name: Deploy to ACI
run: |
az container create --resource-group deploy_container --name streaming-app-container --image ${{ secrets.USER }}/streaming-app-des-nest-app:v1 --dns-name-label streaming-app-des-nest-app --query ipAddress.fqdn

0 comments on commit f2bfd08

Please sign in to comment.