Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ad96el committed Jan 10, 2024
1 parent 6928eed commit 748366c
Showing 1 changed file with 4 additions and 27 deletions.
31 changes: 4 additions & 27 deletions .github/workflows/dev-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- test

name: Dev deployment

Expand Down Expand Up @@ -31,34 +32,10 @@ jobs:
mask-password: "true"
- name: test env variables
run: |
echo "$BACKEND_URL"
echo "$BACKEND_URL $AUTH_URL"
env:
BACKEND_URL: ${{ env.BACKEND_URL }}
AUTH_URL: ${{ env.AUTH_URL }}
- name: Build image
run: |
docker build --build-arg BACKEND_URL=$BACKEND_URL --build-arg AUTH_URL=$AUTH_URL --build-arg BUILD_FEATURE="" -t dena-attester:latest .
env:
BACKEND_URL: ${{ env.BACKEND_URL }}
AUTH_URL: ${{ env.AUTH_URL }}

- name: Tag, and push image to Amazon ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: dena/attester
IMAGE_TAG: ${{ github.sha }}
run: |
docker tag dena-attester $ECR_REGISTRY/$ECR_REPOSITORY:latest
docker tag dena-attester $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
- name: Deploy to kilt cluster
uses: kodermax/kubectl-aws-eks@master
env:
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG }}
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: dena/attester
IMAGE_TAG: ${{ github.sha }}
BACKEND_URL: ${{ vars.BACKEND_URL }}
AUTH_URL: ${{ vars.AUTH_URL }}

with:
args: rollout restart deployment dena-attester -n dena-attester-dev

0 comments on commit 748366c

Please sign in to comment.