fix: ExpiredJwtException.class #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Canary dedicated | |
env: | |
MODULE: dedicated-service | |
BUILD_ID: ${{ github.sha }} | |
HELM_VALUE: dedicated-service-chart/values-dev.yaml | |
HELM_BRANCH: dev | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Grant execute permission for gradlew | |
run: chmod +x ./gradlew | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 # More information on this action can be found below in the 'AWS Credentials' section | |
with: | |
aws-access-key-id: ${{secrets.AWS_ACCESS_KEY_ID}} | |
aws-secret-access-key: ${{secrets.AWS_SECRET_ACCESS_KEY}} | |
aws-region: ap-northeast-2 | |
- name: Login to Amazon ECR | |
id: login-ecr | |
uses: aws-actions/amazon-ecr-login@v2 | |
- name: Build, tag, and push docker image to Amazon ECR | |
env: | |
REGISTRY: ${{ steps.login-ecr.outputs.registry }} | |
REPOSITORY: resistance-dedicated | |
IMAGE_TAG: ${{ github.sha }} | |
run: | | |
envsubst < Dockerfile.template | docker build -t $REGISTRY/$REPOSITORY:$IMAGE_TAG -f - . | |
docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG | |
- name: Checkout Helm Repository | |
uses: actions/checkout@v3 | |
with: | |
repository: downfa11/k8s-Devops | |
path: helm-chart | |
ref: main | |
ssh-key: ${{ secrets.HELM_CHARTS_REPO_KEY }} | |
- name: Change Image tag of the Helm value | |
uses: mikefarah/[email protected] | |
with: | |
cmd: yq -i '.image.tag = "${{ env.BUILD_ID }}"' helm-chart/${{ env.HELM_VALUE }} | |
- name: Commit and Push HELM changes | |
run: | | |
cd helm-chart | |
git config --local user.email "[email protected]" | |
git config --local user.name "downfa11" | |
git add . | |
git commit -m "Commit HELM changes: ${{ env.MODULE }}:${{ env.BUILD_ID }}" | |
current_branch=$(git branch --show-current) | |
git checkout -b ${{ env.HELM_BRANCH }} && git merge ${current_branch} | |
git push --force origin ${{ env.HELM_BRANCH }} |