Skip to content

Commit

Permalink
chore: deploy un
Browse files Browse the repository at this point in the history
Signed-off-by: Nam Hoang <[email protected]>
  • Loading branch information
namhoang1604 committed Sep 16, 2023
1 parent 14e357f commit 1cadb89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-deploy-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- '*'

env:
environment: ${{ (github.ref == 'refs/heads/dev' && 'dev') || (startsWith(github.ref, 'refs/tags/v') && 'UN') }}
environment: ${{ (github.ref == 'refs/heads/dev' && 'dev') || (github.ref == 'refs/heads/dev' || (startsWith(github.ref, 'refs/tags/v')) && 'UN') }}

jobs:
install_and_build:
Expand All @@ -20,7 +20,7 @@ jobs:
env:
CI: false

environment: ${{ (github.ref == 'refs/heads/dev' && 'dev') || (startsWith(github.ref, 'refs/tags/v') && 'UN') }}
environment: ${{ (github.ref == 'refs/heads/dev' && 'dev') || (github.ref == 'refs/heads/dev' || (startsWith(github.ref, 'refs/tags/v')) && 'UN') }}

steps:
- name: Checkout repository
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
permissions:
id-token: write

environment: ${{ (github.ref == 'refs/heads/dev' && 'dev') || (startsWith(github.ref, 'refs/tags/v') && 'UN') }}
environment: ${{ (github.ref == 'refs/heads/dev' && 'dev') || (github.ref == 'refs/heads/dev' || (startsWith(github.ref, 'refs/tags/v')) && 'UN') }}

steps:
- name: Checkout repository
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/deploy-to-s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ on:
push:
branches:
- dev
- deploy-un
tags:
- '*'

env:
environment: ${{ (github.ref == 'refs/heads/dev' && 'dev') || (startsWith(github.ref, 'refs/tags/v') && 'UN') }}
environment: ${{ (github.ref == 'refs/heads/dev' && 'dev') || (github.ref == 'refs/heads/dev' || (startsWith(github.ref, 'refs/tags/v')) && 'UN') }}

jobs:
install_and_build:
Expand All @@ -17,7 +18,7 @@ jobs:
env:
CI: false

environment: ${{ (github.ref == 'refs/heads/dev' && 'dev') || (startsWith(github.ref, 'refs/tags/v') && 'UN') }}
environment: ${{ (github.ref == 'refs/heads/dev' && 'dev') || (github.ref == 'refs/heads/dev' || (startsWith(github.ref, 'refs/tags/v')) && 'UN') }}

steps:
- name: Checkout repository
Expand Down Expand Up @@ -71,7 +72,7 @@ jobs:
permissions:
id-token: write

environment: ${{ (github.ref == 'refs/heads/dev' && 'dev') || (startsWith(github.ref, 'refs/tags/v') && 'UN') }}
environment: ${{ (github.ref == 'refs/heads/dev' && 'dev') || (github.ref == 'refs/heads/dev' || (startsWith(github.ref, 'refs/tags/v')) && 'UN') }}

steps:
- name: Checkout repository
Expand Down

0 comments on commit 1cadb89

Please sign in to comment.