Skip to content

Commit

Permalink
[chore]Update k8s env develop
Browse files Browse the repository at this point in the history
  • Loading branch information
MinhhTien committed Feb 25, 2024
1 parent db6de26 commit f869ad8
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,23 @@ on:
push:
branches: [ "k8s" ]

env:
ECR_REPOSITORY: ${{ vars.ECR_REPOSITORY }}
EKS_CLUSTER_NAME: ${{ vars.EKS_CLUSTER_NAME }}
AWS_REGION: ${{ vars.AWS_REGION }}
IMAGE_TAG: "pr-${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.sha }}"

jobs:
build:
name: Deployment
runs-on: ubuntu-latest
environment: develop
env:
ECR_REPOSITORY: ${{ vars.ECR_REPOSITORY }}
EKS_CLUSTER_NAME: ${{ vars.EKS_CLUSTER_NAME }}
AWS_REGION: ${{ vars.AWS_REGION }}
IMAGE_TAG: "pr-${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.sha }}"

steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Set short git commit SHA
id: commit
uses: prompt/actions-commit-hash@v2

- name: Checkout
uses: actions/checkout@v2

Expand Down

0 comments on commit f869ad8

Please sign in to comment.