Skip to content

Commit

Permalink
Update Prod Deploy GA for release branch (#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruuushhh committed Jun 5, 2024
1 parent 73b12b6 commit 02134f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/production_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
- uses: actions/checkout@v2
- name: push to dockerhub
uses: fylein/docker-release-action@master
id: generate-and-push-tag
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -33,17 +34,18 @@ jobs:

- name: Update Image Tag
run: |
NEW_TAG="v$(git rev-parse --short HEAD)"
NEW_TAG=${{ steps.generate-and-push-tag.outputs.new_tag }}
cd ${{ vars.PROD_DEPLOY_REPO }}/${{ vars.PROD_US1_DEPLOY_DIR }}/integrations
kustomize edit set image docker.io/${{ secrets.DOCKERHUB_USERNAME }}/fyle_integrations-app=docker.io/${{ secrets.DOCKERHUB_USERNAME }}/fyle_integrations-app:$NEW_TAG
- name: Commit and push changes
run: |
NEW_TAG=${{ steps.generate-and-push-tag.outputs.new_tag }}
cd ${{ vars.PROD_DEPLOY_REPO }}/
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add .
git commit -m "Update image tag"
git commit -m "Deployed fyle_integrations-app:$NEW_TAG"
git remote set-url origin https://x-access-token:${{ secrets.DEPLOY_GIT_ACCESS_TOKEN }}@github.com/${{ vars.PROD_DEPLOY_REPO }}
git pull origin master
git push origin master

0 comments on commit 02134f9

Please sign in to comment.