Skip to content

Commit

Permalink
Merge pull request #33 from AElfProject/ci/production-deploy-on-tag
Browse files Browse the repository at this point in the history
ci: production deploy on tag
  • Loading branch information
yongenaelf authored Sep 30, 2024
2 parents 2bf3723 + bad4ce5 commit 73c4187
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ name: Create and publish a Docker image
on:
workflow_dispatch:
push:
branches: ["master"]
branches: [master]
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
build:
runs-on: ubuntu-latest
env:
ENVIRONMENT: ${{ github.ref_type == 'tag' && 'production' || 'development' }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
Expand Down Expand Up @@ -58,7 +62,7 @@ jobs:
workflow_id: 'playground-deploy.yaml',
ref: 'main',
inputs: {
env: 'development',
env: '${{ env.ENVIRONMENT }}',
appName: 'playground-service',
commit_sha: 'sha-${{ steps.vars.outputs.short_sha }}',
}
Expand Down

0 comments on commit 73c4187

Please sign in to comment.