Skip to content

Commit

Permalink
test trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
digorgonzola committed Dec 29, 2023
1 parent f38410c commit cdf0c0d
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/build-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,16 @@ jobs:
build_test_push:
runs-on: ubuntu-latest
environment: development
outputs:
image_digest: ${{ steps.echo.outputs.image_digest }}
steps:
# - name: Checkout
# uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- name: echo
id: echo
run: |
echo "image_digest=latest" >> "$GITHUB_OUTPUT"
#
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
Expand Down Expand Up @@ -73,12 +80,19 @@ jobs:
# push: true
# tags: ${{ vars.ECR_REGISTRY }}/${{ vars.ECR_REPOSITORY }}:${{ steps.set_image_tag.outputs.image_tag }}

trigger_deploy:
runs-on: ubuntu-latest
needs: [build_test_push]
permissions:
contents: write
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.DEPLOY_APP_ID }}
private-key: ${{ secrets.DEPLOY_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: "appdeploy"

- name: Trigger Deploy Workflow
uses: actions/github-script@v7
Expand All @@ -94,7 +108,7 @@ jobs:
inputs: {
app_name: 'sample-django-app',
environment: 'development',
image_tag: 'latest',
image_tag: '${{ needs.build_test_push.outputs.image_digest }}',
terragrunt_action: 'apply'
},
})

0 comments on commit cdf0c0d

Please sign in to comment.