Skip to content

add readme file

add readme file #3

Workflow file for this run

name: CD Workflow
on:
push:
branches:
- main
env:
IMAGE_NAME: ghcr.io/alber-writer/lemoncode-cloud-lab-azure-gh-docker:${{github.run_number}}-${{github.run_attempt}}
permissions:
contents: "read"
packages: "write"
jobs:
cd:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to GitHub container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push docker image
run: |
docker build -t ${{env.IMAGE_NAME}} .
docker push ${{env.IMAGE_NAME}}
- name: Deploy to Azure
uses: azure/webapps-deploy@v3
with:
app-name: ${{ secrets.AZURE_APP_NAME }}
publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE }}
images: ${{env.IMAGE_NAME}}