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:
parent
f9d1dc1b12
commit
9c487c99dc
1 changed files with 25 additions and 0 deletions
25
.github/workflows/release-cloud.yml
vendored
25
.github/workflows/release-cloud.yml
vendored
|
@ -47,3 +47,28 @@ jobs:
|
|||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue