Skip to content

Commit

Permalink
feat: k8s continuous deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
smrz2001 committed Jul 30, 2024
1 parent dc6e8a0 commit f4f6cb0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,17 @@ jobs:
name: Set main branch tag
if: ${{ env.BRANCH == 'main' }}
run: |
echo "ENV_TAG=prod" >> $GITHUB_ENV
echo "DEPLOY_ENV=prod" >> $GITHUB_ENV
-
name: Set rc branch tag
if: ${{ env.BRANCH == 'release-candidate' }}
run: |
echo "ENV_TAG=tnet" >> $GITHUB_ENV
echo "DEPLOY_ENV=tnet" >> $GITHUB_ENV
-
name: Set develop branch tag
if: ${{ env.BRANCH == 'develop' || env.ENV_TAG == '' }}
if: ${{ env.BRANCH == 'develop' || env.DEPLOY_ENV == '' }}
run: |
echo "ENV_TAG=dev" >> $GITHUB_ENV
echo "DEPLOY_ENV=dev" >> $GITHUB_ENV
-
name: Set publish flag
if: ${{ env.BRANCH == 'main' || env.BRANCH == 'release-candidate' || env.BRANCH == 'develop' || env.BRANCH == 'feature/*' }}
Expand All @@ -81,7 +81,7 @@ jobs:
-
name: Push Docker image
if: ${{ env.PUBLISH == 'true' }}
run: dagger do push -w "actions:push:\"${{ env.AWS_REGION }}\":\"${{ env.ENV_TAG }}\":\"${{ env.BRANCH }}\":\"${{ env.SHA }}\":\"${{ env.SHA_TAG }}\":\"${{ env.VERSION }}\":_" -p ${{ env.DAGGER_PLAN }}
run: dagger do push -w "actions:push:\"${{ env.AWS_REGION }}\":\"${{ env.DEPLOY_ENV }}\":\"${{ env.BRANCH }}\":\"${{ env.SHA }}\":\"${{ env.SHA_TAG }}\":\"${{ env.VERSION }}\":_" -p ${{ env.DAGGER_PLAN }}
-
name: Schedule k8s deployment
run: |
Expand Down

0 comments on commit f4f6cb0

Please sign in to comment.