Skip to content

Commit

Permalink
add docker build and push action
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberHoward committed Apr 25, 2024
1 parent b88b1ff commit 0a4b33e
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/build-and-push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,27 +63,3 @@ jobs:
- name: Push image with SHA tag
run: |
docker push 537748208826.dkr.ecr.us-east-1.amazonaws.com/carrot-bot:$GITHUB_SHA
- name: Generate ArgoCD application manifest
run: |
yq eval '.spec.source.helm.parameters[0].value = env(GITHUB_SHA)' argo-template.yml> argocd.yaml
cat argocd.yaml
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::537748208826:role/github-actions-to-eks
aws-region: us-east-1

- name: Generate kubeconfig
run: |
{
echo 'KUBE_CONFIG<<EOF'
aws eks update-kubeconfig --region us-east-1 --name prod-eks-2 --dry-run | base64
echo EOF
} >> "$GITHUB_ENV"
- uses: tale/kubectl-action@v1
with:
base64-kube-config: ${{ env.KUBE_CONFIG }}
- run: kubectl apply -f argocd.yaml

0 comments on commit 0a4b33e

Please sign in to comment.