Skip to content

Commit

Permalink
ci: deploy cloudformation after build
Browse files Browse the repository at this point in the history
  • Loading branch information
Akeboshiwind committed Mar 5, 2024
1 parent d147bd6 commit 99877c4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

build-and-push-ecr:
build-and-push-ecr_and_deploy-cloudformation:
runs-on: ubuntu-latest
if: github.repository == 'xtdb/xt-fiddle'
permissions:
Expand Down Expand Up @@ -69,3 +69,13 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Get tag
id: vars
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- name: Deploy to AWS CloudFormation
uses: aws-actions/aws-cloudformation-github-deploy@v1
with:
name: xt-fiddle
template: cloudformation/deploy.yml
parameter-overrides: "HostedZoneId=${{ secrets.HOSTED_ZONE_ID }},HostedZoneName=${{ secrets.HOSTED_ZONE_NAME }},HostedZoneName=${{ steps.vars.outputs.tag }}"

0 comments on commit 99877c4

Please sign in to comment.