0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-17 22:04:19 -05:00

ci: add deploy cloud workflow (#3306)

This commit is contained in:
Gao Sun 2023-03-06 22:48:58 +08:00 committed by GitHub
parent f9d1dc1b12
commit 9c487c99dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,3 +47,28 @@ jobs:
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
deploy-dev:
runs-on: ubuntu-latest
needs: dockerize
environment: cloud
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: silverhand-bot
password: ${{ secrets.BOT_PAT }}
- name: Login via Azure CLI
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Deploy to containerapp
uses: azure/webapps-deploy@v2
with:
app-name: logto-cloud-dev
images: ghcr.io/logto-io/cloud:edge