quivr/.github/workflows/aws-strapi.yml

103 lines
3.5 KiB
YAML
Raw Normal View History

2023-09-21 11:17:33 +03:00
name: Deploy Strapi
on:
push:
branches: [ "main" ]
paths:
- 'cms/**'
env:
AWS_REGION: eu-west-3
ECR_REPOSITORY: quivr-strapi
ECR_REGISTRY: 253053805092.dkr.ecr.eu-west-3.amazonaws.com
ECS_CLUSTER: quivr
jobs:
build_and_push:
name: Build and Push Docker Image
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
chore(deps): pin dependencies (#1975) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://togithub.com/actions/checkout) | action | pinDigest | -> `b4ffde6` | | [actions/setup-node](https://togithub.com/actions/setup-node) | action | pinDigest | -> `b39b52d` | | [actions/setup-python](https://togithub.com/actions/setup-python) | action | pinDigest | -> `65d7f2d` | | [aws-actions/amazon-ecr-login](https://togithub.com/aws-actions/amazon-ecr-login) | action | pinDigest | -> `2fc7ace` | | [aws-actions/amazon-ecs-deploy-task-definition](https://togithub.com/aws-actions/amazon-ecs-deploy-task-definition) | action | pinDigest | -> `df96430` | | [aws-actions/amazon-ecs-render-task-definition](https://togithub.com/aws-actions/amazon-ecs-render-task-definition) | action | pinDigest | -> `4225e0b` | | [aws-actions/configure-aws-credentials](https://togithub.com/aws-actions/configure-aws-credentials) | action | pinDigest | -> `5fd3084` | | darthsim/imgproxy | | pinDigest | -> `0facd35` | | [docker/build-push-action](https://togithub.com/docker/build-push-action) | action | pinDigest | -> `0a97817` | | [docker/build-push-action](https://togithub.com/docker/build-push-action) | action | pinDigest | -> `4a13e50` | | [docker/login-action](https://togithub.com/docker/login-action) | action | pinDigest | -> `465a078` | | [docker/login-action](https://togithub.com/docker/login-action) | action | pinDigest | -> `343f7c4` | | [docker/setup-buildx-action](https://togithub.com/docker/setup-buildx-action) | action | pinDigest | -> `885d146` | | [docker/setup-buildx-action](https://togithub.com/docker/setup-buildx-action) | action | pinDigest | -> `f95db51` | | [docker/setup-qemu-action](https://togithub.com/docker/setup-qemu-action) | action | pinDigest | -> `6882732` | | [google-github-actions/release-please-action](https://togithub.com/google-github-actions/release-please-action) | action | pinDigest | -> `db8f2c6` | | kong | | pinDigest | -> `1b53405` | | [pavelzw/pytest-action](https://togithub.com/pavelzw/pytest-action) | action | pinDigest | -> `510c5e9` | | postgrest/postgrest | | pinDigest | -> `23b2dab` | | python | final | pinDigest | -> `0c1fbb2` | | redis | | pinDigest | -> `a7cee7c` | | supabase/edge-runtime | | pinDigest | -> `4e02aac` | | supabase/gotrue | | pinDigest | -> `b503f1f` | | supabase/logflare | | pinDigest | -> `e693c78` | | supabase/postgres | | pinDigest | -> `fb8387f` | | supabase/postgres-meta | | pinDigest | -> `31a107d` | | supabase/realtime | | pinDigest | -> `634a59e` | | supabase/storage-api | | pinDigest | -> `2cd146f` | | supabase/studio | | pinDigest | -> `393669f` | | timberio/vector | | pinDigest | -> `4bc04ac` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/StanGirard/quivr). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMDMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjEwMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-04 16:00:18 +03:00
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
2023-09-21 11:17:33 +03:00
- name: Configure AWS credentials
chore(deps): pin dependencies (#1975) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://togithub.com/actions/checkout) | action | pinDigest | -> `b4ffde6` | | [actions/setup-node](https://togithub.com/actions/setup-node) | action | pinDigest | -> `b39b52d` | | [actions/setup-python](https://togithub.com/actions/setup-python) | action | pinDigest | -> `65d7f2d` | | [aws-actions/amazon-ecr-login](https://togithub.com/aws-actions/amazon-ecr-login) | action | pinDigest | -> `2fc7ace` | | [aws-actions/amazon-ecs-deploy-task-definition](https://togithub.com/aws-actions/amazon-ecs-deploy-task-definition) | action | pinDigest | -> `df96430` | | [aws-actions/amazon-ecs-render-task-definition](https://togithub.com/aws-actions/amazon-ecs-render-task-definition) | action | pinDigest | -> `4225e0b` | | [aws-actions/configure-aws-credentials](https://togithub.com/aws-actions/configure-aws-credentials) | action | pinDigest | -> `5fd3084` | | darthsim/imgproxy | | pinDigest | -> `0facd35` | | [docker/build-push-action](https://togithub.com/docker/build-push-action) | action | pinDigest | -> `0a97817` | | [docker/build-push-action](https://togithub.com/docker/build-push-action) | action | pinDigest | -> `4a13e50` | | [docker/login-action](https://togithub.com/docker/login-action) | action | pinDigest | -> `465a078` | | [docker/login-action](https://togithub.com/docker/login-action) | action | pinDigest | -> `343f7c4` | | [docker/setup-buildx-action](https://togithub.com/docker/setup-buildx-action) | action | pinDigest | -> `885d146` | | [docker/setup-buildx-action](https://togithub.com/docker/setup-buildx-action) | action | pinDigest | -> `f95db51` | | [docker/setup-qemu-action](https://togithub.com/docker/setup-qemu-action) | action | pinDigest | -> `6882732` | | [google-github-actions/release-please-action](https://togithub.com/google-github-actions/release-please-action) | action | pinDigest | -> `db8f2c6` | | kong | | pinDigest | -> `1b53405` | | [pavelzw/pytest-action](https://togithub.com/pavelzw/pytest-action) | action | pinDigest | -> `510c5e9` | | postgrest/postgrest | | pinDigest | -> `23b2dab` | | python | final | pinDigest | -> `0c1fbb2` | | redis | | pinDigest | -> `a7cee7c` | | supabase/edge-runtime | | pinDigest | -> `4e02aac` | | supabase/gotrue | | pinDigest | -> `b503f1f` | | supabase/logflare | | pinDigest | -> `e693c78` | | supabase/postgres | | pinDigest | -> `fb8387f` | | supabase/postgres-meta | | pinDigest | -> `31a107d` | | supabase/realtime | | pinDigest | -> `634a59e` | | supabase/storage-api | | pinDigest | -> `2cd146f` | | supabase/studio | | pinDigest | -> `393669f` | | timberio/vector | | pinDigest | -> `4bc04ac` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/StanGirard/quivr). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMDMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjEwMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-04 16:00:18 +03:00
uses: aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2
2023-09-21 11:17:33 +03:00
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}
- name: Login to Amazon ECR
id: login-ecr
chore(deps): pin dependencies (#1975) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://togithub.com/actions/checkout) | action | pinDigest | -> `b4ffde6` | | [actions/setup-node](https://togithub.com/actions/setup-node) | action | pinDigest | -> `b39b52d` | | [actions/setup-python](https://togithub.com/actions/setup-python) | action | pinDigest | -> `65d7f2d` | | [aws-actions/amazon-ecr-login](https://togithub.com/aws-actions/amazon-ecr-login) | action | pinDigest | -> `2fc7ace` | | [aws-actions/amazon-ecs-deploy-task-definition](https://togithub.com/aws-actions/amazon-ecs-deploy-task-definition) | action | pinDigest | -> `df96430` | | [aws-actions/amazon-ecs-render-task-definition](https://togithub.com/aws-actions/amazon-ecs-render-task-definition) | action | pinDigest | -> `4225e0b` | | [aws-actions/configure-aws-credentials](https://togithub.com/aws-actions/configure-aws-credentials) | action | pinDigest | -> `5fd3084` | | darthsim/imgproxy | | pinDigest | -> `0facd35` | | [docker/build-push-action](https://togithub.com/docker/build-push-action) | action | pinDigest | -> `0a97817` | | [docker/build-push-action](https://togithub.com/docker/build-push-action) | action | pinDigest | -> `4a13e50` | | [docker/login-action](https://togithub.com/docker/login-action) | action | pinDigest | -> `465a078` | | [docker/login-action](https://togithub.com/docker/login-action) | action | pinDigest | -> `343f7c4` | | [docker/setup-buildx-action](https://togithub.com/docker/setup-buildx-action) | action | pinDigest | -> `885d146` | | [docker/setup-buildx-action](https://togithub.com/docker/setup-buildx-action) | action | pinDigest | -> `f95db51` | | [docker/setup-qemu-action](https://togithub.com/docker/setup-qemu-action) | action | pinDigest | -> `6882732` | | [google-github-actions/release-please-action](https://togithub.com/google-github-actions/release-please-action) | action | pinDigest | -> `db8f2c6` | | kong | | pinDigest | -> `1b53405` | | [pavelzw/pytest-action](https://togithub.com/pavelzw/pytest-action) | action | pinDigest | -> `510c5e9` | | postgrest/postgrest | | pinDigest | -> `23b2dab` | | python | final | pinDigest | -> `0c1fbb2` | | redis | | pinDigest | -> `a7cee7c` | | supabase/edge-runtime | | pinDigest | -> `4e02aac` | | supabase/gotrue | | pinDigest | -> `b503f1f` | | supabase/logflare | | pinDigest | -> `e693c78` | | supabase/postgres | | pinDigest | -> `fb8387f` | | supabase/postgres-meta | | pinDigest | -> `31a107d` | | supabase/realtime | | pinDigest | -> `634a59e` | | supabase/storage-api | | pinDigest | -> `2cd146f` | | supabase/studio | | pinDigest | -> `393669f` | | timberio/vector | | pinDigest | -> `4bc04ac` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/StanGirard/quivr). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMDMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjEwMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-04 16:00:18 +03:00
uses: aws-actions/amazon-ecr-login@2fc7aceee09e9e4a7105c0d060c656fad0b4f63d # v1
2023-09-21 11:17:33 +03:00
- name: Login to GitHub Container Registry
chore(deps): pin dependencies (#1975) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://togithub.com/actions/checkout) | action | pinDigest | -> `b4ffde6` | | [actions/setup-node](https://togithub.com/actions/setup-node) | action | pinDigest | -> `b39b52d` | | [actions/setup-python](https://togithub.com/actions/setup-python) | action | pinDigest | -> `65d7f2d` | | [aws-actions/amazon-ecr-login](https://togithub.com/aws-actions/amazon-ecr-login) | action | pinDigest | -> `2fc7ace` | | [aws-actions/amazon-ecs-deploy-task-definition](https://togithub.com/aws-actions/amazon-ecs-deploy-task-definition) | action | pinDigest | -> `df96430` | | [aws-actions/amazon-ecs-render-task-definition](https://togithub.com/aws-actions/amazon-ecs-render-task-definition) | action | pinDigest | -> `4225e0b` | | [aws-actions/configure-aws-credentials](https://togithub.com/aws-actions/configure-aws-credentials) | action | pinDigest | -> `5fd3084` | | darthsim/imgproxy | | pinDigest | -> `0facd35` | | [docker/build-push-action](https://togithub.com/docker/build-push-action) | action | pinDigest | -> `0a97817` | | [docker/build-push-action](https://togithub.com/docker/build-push-action) | action | pinDigest | -> `4a13e50` | | [docker/login-action](https://togithub.com/docker/login-action) | action | pinDigest | -> `465a078` | | [docker/login-action](https://togithub.com/docker/login-action) | action | pinDigest | -> `343f7c4` | | [docker/setup-buildx-action](https://togithub.com/docker/setup-buildx-action) | action | pinDigest | -> `885d146` | | [docker/setup-buildx-action](https://togithub.com/docker/setup-buildx-action) | action | pinDigest | -> `f95db51` | | [docker/setup-qemu-action](https://togithub.com/docker/setup-qemu-action) | action | pinDigest | -> `6882732` | | [google-github-actions/release-please-action](https://togithub.com/google-github-actions/release-please-action) | action | pinDigest | -> `db8f2c6` | | kong | | pinDigest | -> `1b53405` | | [pavelzw/pytest-action](https://togithub.com/pavelzw/pytest-action) | action | pinDigest | -> `510c5e9` | | postgrest/postgrest | | pinDigest | -> `23b2dab` | | python | final | pinDigest | -> `0c1fbb2` | | redis | | pinDigest | -> `a7cee7c` | | supabase/edge-runtime | | pinDigest | -> `4e02aac` | | supabase/gotrue | | pinDigest | -> `b503f1f` | | supabase/logflare | | pinDigest | -> `e693c78` | | supabase/postgres | | pinDigest | -> `fb8387f` | | supabase/postgres-meta | | pinDigest | -> `31a107d` | | supabase/realtime | | pinDigest | -> `634a59e` | | supabase/storage-api | | pinDigest | -> `2cd146f` | | supabase/studio | | pinDigest | -> `393669f` | | timberio/vector | | pinDigest | -> `4bc04ac` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/StanGirard/quivr). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMDMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjEwMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-04 16:00:18 +03:00
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
2023-09-21 11:17:33 +03:00
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
chore(deps): pin dependencies (#1975) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://togithub.com/actions/checkout) | action | pinDigest | -> `b4ffde6` | | [actions/setup-node](https://togithub.com/actions/setup-node) | action | pinDigest | -> `b39b52d` | | [actions/setup-python](https://togithub.com/actions/setup-python) | action | pinDigest | -> `65d7f2d` | | [aws-actions/amazon-ecr-login](https://togithub.com/aws-actions/amazon-ecr-login) | action | pinDigest | -> `2fc7ace` | | [aws-actions/amazon-ecs-deploy-task-definition](https://togithub.com/aws-actions/amazon-ecs-deploy-task-definition) | action | pinDigest | -> `df96430` | | [aws-actions/amazon-ecs-render-task-definition](https://togithub.com/aws-actions/amazon-ecs-render-task-definition) | action | pinDigest | -> `4225e0b` | | [aws-actions/configure-aws-credentials](https://togithub.com/aws-actions/configure-aws-credentials) | action | pinDigest | -> `5fd3084` | | darthsim/imgproxy | | pinDigest | -> `0facd35` | | [docker/build-push-action](https://togithub.com/docker/build-push-action) | action | pinDigest | -> `0a97817` | | [docker/build-push-action](https://togithub.com/docker/build-push-action) | action | pinDigest | -> `4a13e50` | | [docker/login-action](https://togithub.com/docker/login-action) | action | pinDigest | -> `465a078` | | [docker/login-action](https://togithub.com/docker/login-action) | action | pinDigest | -> `343f7c4` | | [docker/setup-buildx-action](https://togithub.com/docker/setup-buildx-action) | action | pinDigest | -> `885d146` | | [docker/setup-buildx-action](https://togithub.com/docker/setup-buildx-action) | action | pinDigest | -> `f95db51` | | [docker/setup-qemu-action](https://togithub.com/docker/setup-qemu-action) | action | pinDigest | -> `6882732` | | [google-github-actions/release-please-action](https://togithub.com/google-github-actions/release-please-action) | action | pinDigest | -> `db8f2c6` | | kong | | pinDigest | -> `1b53405` | | [pavelzw/pytest-action](https://togithub.com/pavelzw/pytest-action) | action | pinDigest | -> `510c5e9` | | postgrest/postgrest | | pinDigest | -> `23b2dab` | | python | final | pinDigest | -> `0c1fbb2` | | redis | | pinDigest | -> `a7cee7c` | | supabase/edge-runtime | | pinDigest | -> `4e02aac` | | supabase/gotrue | | pinDigest | -> `b503f1f` | | supabase/logflare | | pinDigest | -> `e693c78` | | supabase/postgres | | pinDigest | -> `fb8387f` | | supabase/postgres-meta | | pinDigest | -> `31a107d` | | supabase/realtime | | pinDigest | -> `634a59e` | | supabase/storage-api | | pinDigest | -> `2cd146f` | | supabase/studio | | pinDigest | -> `393669f` | | timberio/vector | | pinDigest | -> `4bc04ac` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/StanGirard/quivr). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMDMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjEwMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-04 16:00:18 +03:00
uses: docker/setup-buildx-action@885d1462b80bc1c1c7f0b00334ad271f09369c55 # v2
2023-09-21 11:17:33 +03:00
- name: Create Docker Cacha Storage Backend
run: |
docker buildx create --use --driver=docker-container
- name: See the file in the runner
run: |
ls -la
- name: Build, tag, and push image to Amazon ECR
id: build-image
chore(deps): pin dependencies (#1975) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://togithub.com/actions/checkout) | action | pinDigest | -> `b4ffde6` | | [actions/setup-node](https://togithub.com/actions/setup-node) | action | pinDigest | -> `b39b52d` | | [actions/setup-python](https://togithub.com/actions/setup-python) | action | pinDigest | -> `65d7f2d` | | [aws-actions/amazon-ecr-login](https://togithub.com/aws-actions/amazon-ecr-login) | action | pinDigest | -> `2fc7ace` | | [aws-actions/amazon-ecs-deploy-task-definition](https://togithub.com/aws-actions/amazon-ecs-deploy-task-definition) | action | pinDigest | -> `df96430` | | [aws-actions/amazon-ecs-render-task-definition](https://togithub.com/aws-actions/amazon-ecs-render-task-definition) | action | pinDigest | -> `4225e0b` | | [aws-actions/configure-aws-credentials](https://togithub.com/aws-actions/configure-aws-credentials) | action | pinDigest | -> `5fd3084` | | darthsim/imgproxy | | pinDigest | -> `0facd35` | | [docker/build-push-action](https://togithub.com/docker/build-push-action) | action | pinDigest | -> `0a97817` | | [docker/build-push-action](https://togithub.com/docker/build-push-action) | action | pinDigest | -> `4a13e50` | | [docker/login-action](https://togithub.com/docker/login-action) | action | pinDigest | -> `465a078` | | [docker/login-action](https://togithub.com/docker/login-action) | action | pinDigest | -> `343f7c4` | | [docker/setup-buildx-action](https://togithub.com/docker/setup-buildx-action) | action | pinDigest | -> `885d146` | | [docker/setup-buildx-action](https://togithub.com/docker/setup-buildx-action) | action | pinDigest | -> `f95db51` | | [docker/setup-qemu-action](https://togithub.com/docker/setup-qemu-action) | action | pinDigest | -> `6882732` | | [google-github-actions/release-please-action](https://togithub.com/google-github-actions/release-please-action) | action | pinDigest | -> `db8f2c6` | | kong | | pinDigest | -> `1b53405` | | [pavelzw/pytest-action](https://togithub.com/pavelzw/pytest-action) | action | pinDigest | -> `510c5e9` | | postgrest/postgrest | | pinDigest | -> `23b2dab` | | python | final | pinDigest | -> `0c1fbb2` | | redis | | pinDigest | -> `a7cee7c` | | supabase/edge-runtime | | pinDigest | -> `4e02aac` | | supabase/gotrue | | pinDigest | -> `b503f1f` | | supabase/logflare | | pinDigest | -> `e693c78` | | supabase/postgres | | pinDigest | -> `fb8387f` | | supabase/postgres-meta | | pinDigest | -> `31a107d` | | supabase/realtime | | pinDigest | -> `634a59e` | | supabase/storage-api | | pinDigest | -> `2cd146f` | | supabase/studio | | pinDigest | -> `393669f` | | timberio/vector | | pinDigest | -> `4bc04ac` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/StanGirard/quivr). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMDMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjEwMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-04 16:00:18 +03:00
uses: docker/build-push-action@0a97817b6ade9f46837855d676c4cca3a2471fc9 # v4
2023-09-21 11:17:33 +03:00
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
IMAGE_TAG: ${{ github.sha }}
with:
context: ./cms/quivr/
push: true
tags: ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}, ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:latest, ghcr.io/stangirard/quivr:latest
cache-from: type=gha
cache-to: type=gha,mode=max
deploy:
needs: build_and_push
runs-on: ubuntu-latest
environment: production
strategy:
fail-fast: false
matrix:
include:
- name: "strapi"
service: "strapi"
task_definition: ".aws/task_definition_strapi.json"
container: "strapi"
steps:
- name: Checkout
chore(deps): pin dependencies (#1975) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://togithub.com/actions/checkout) | action | pinDigest | -> `b4ffde6` | | [actions/setup-node](https://togithub.com/actions/setup-node) | action | pinDigest | -> `b39b52d` | | [actions/setup-python](https://togithub.com/actions/setup-python) | action | pinDigest | -> `65d7f2d` | | [aws-actions/amazon-ecr-login](https://togithub.com/aws-actions/amazon-ecr-login) | action | pinDigest | -> `2fc7ace` | | [aws-actions/amazon-ecs-deploy-task-definition](https://togithub.com/aws-actions/amazon-ecs-deploy-task-definition) | action | pinDigest | -> `df96430` | | [aws-actions/amazon-ecs-render-task-definition](https://togithub.com/aws-actions/amazon-ecs-render-task-definition) | action | pinDigest | -> `4225e0b` | | [aws-actions/configure-aws-credentials](https://togithub.com/aws-actions/configure-aws-credentials) | action | pinDigest | -> `5fd3084` | | darthsim/imgproxy | | pinDigest | -> `0facd35` | | [docker/build-push-action](https://togithub.com/docker/build-push-action) | action | pinDigest | -> `0a97817` | | [docker/build-push-action](https://togithub.com/docker/build-push-action) | action | pinDigest | -> `4a13e50` | | [docker/login-action](https://togithub.com/docker/login-action) | action | pinDigest | -> `465a078` | | [docker/login-action](https://togithub.com/docker/login-action) | action | pinDigest | -> `343f7c4` | | [docker/setup-buildx-action](https://togithub.com/docker/setup-buildx-action) | action | pinDigest | -> `885d146` | | [docker/setup-buildx-action](https://togithub.com/docker/setup-buildx-action) | action | pinDigest | -> `f95db51` | | [docker/setup-qemu-action](https://togithub.com/docker/setup-qemu-action) | action | pinDigest | -> `6882732` | | [google-github-actions/release-please-action](https://togithub.com/google-github-actions/release-please-action) | action | pinDigest | -> `db8f2c6` | | kong | | pinDigest | -> `1b53405` | | [pavelzw/pytest-action](https://togithub.com/pavelzw/pytest-action) | action | pinDigest | -> `510c5e9` | | postgrest/postgrest | | pinDigest | -> `23b2dab` | | python | final | pinDigest | -> `0c1fbb2` | | redis | | pinDigest | -> `a7cee7c` | | supabase/edge-runtime | | pinDigest | -> `4e02aac` | | supabase/gotrue | | pinDigest | -> `b503f1f` | | supabase/logflare | | pinDigest | -> `e693c78` | | supabase/postgres | | pinDigest | -> `fb8387f` | | supabase/postgres-meta | | pinDigest | -> `31a107d` | | supabase/realtime | | pinDigest | -> `634a59e` | | supabase/storage-api | | pinDigest | -> `2cd146f` | | supabase/studio | | pinDigest | -> `393669f` | | timberio/vector | | pinDigest | -> `4bc04ac` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/StanGirard/quivr). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMDMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjEwMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-04 16:00:18 +03:00
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
2023-09-21 11:17:33 +03:00
- name: Configure AWS credentials
chore(deps): pin dependencies (#1975) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://togithub.com/actions/checkout) | action | pinDigest | -> `b4ffde6` | | [actions/setup-node](https://togithub.com/actions/setup-node) | action | pinDigest | -> `b39b52d` | | [actions/setup-python](https://togithub.com/actions/setup-python) | action | pinDigest | -> `65d7f2d` | | [aws-actions/amazon-ecr-login](https://togithub.com/aws-actions/amazon-ecr-login) | action | pinDigest | -> `2fc7ace` | | [aws-actions/amazon-ecs-deploy-task-definition](https://togithub.com/aws-actions/amazon-ecs-deploy-task-definition) | action | pinDigest | -> `df96430` | | [aws-actions/amazon-ecs-render-task-definition](https://togithub.com/aws-actions/amazon-ecs-render-task-definition) | action | pinDigest | -> `4225e0b` | | [aws-actions/configure-aws-credentials](https://togithub.com/aws-actions/configure-aws-credentials) | action | pinDigest | -> `5fd3084` | | darthsim/imgproxy | | pinDigest | -> `0facd35` | | [docker/build-push-action](https://togithub.com/docker/build-push-action) | action | pinDigest | -> `0a97817` | | [docker/build-push-action](https://togithub.com/docker/build-push-action) | action | pinDigest | -> `4a13e50` | | [docker/login-action](https://togithub.com/docker/login-action) | action | pinDigest | -> `465a078` | | [docker/login-action](https://togithub.com/docker/login-action) | action | pinDigest | -> `343f7c4` | | [docker/setup-buildx-action](https://togithub.com/docker/setup-buildx-action) | action | pinDigest | -> `885d146` | | [docker/setup-buildx-action](https://togithub.com/docker/setup-buildx-action) | action | pinDigest | -> `f95db51` | | [docker/setup-qemu-action](https://togithub.com/docker/setup-qemu-action) | action | pinDigest | -> `6882732` | | [google-github-actions/release-please-action](https://togithub.com/google-github-actions/release-please-action) | action | pinDigest | -> `db8f2c6` | | kong | | pinDigest | -> `1b53405` | | [pavelzw/pytest-action](https://togithub.com/pavelzw/pytest-action) | action | pinDigest | -> `510c5e9` | | postgrest/postgrest | | pinDigest | -> `23b2dab` | | python | final | pinDigest | -> `0c1fbb2` | | redis | | pinDigest | -> `a7cee7c` | | supabase/edge-runtime | | pinDigest | -> `4e02aac` | | supabase/gotrue | | pinDigest | -> `b503f1f` | | supabase/logflare | | pinDigest | -> `e693c78` | | supabase/postgres | | pinDigest | -> `fb8387f` | | supabase/postgres-meta | | pinDigest | -> `31a107d` | | supabase/realtime | | pinDigest | -> `634a59e` | | supabase/storage-api | | pinDigest | -> `2cd146f` | | supabase/studio | | pinDigest | -> `393669f` | | timberio/vector | | pinDigest | -> `4bc04ac` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/StanGirard/quivr). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMDMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjEwMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-04 16:00:18 +03:00
uses: aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2
2023-09-21 11:17:33 +03:00
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}
- name: Fill in the new image ID in the Amazon ECS task definition for ${{ matrix.name }}
id: task-def
chore(deps): pin dependencies (#1975) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://togithub.com/actions/checkout) | action | pinDigest | -> `b4ffde6` | | [actions/setup-node](https://togithub.com/actions/setup-node) | action | pinDigest | -> `b39b52d` | | [actions/setup-python](https://togithub.com/actions/setup-python) | action | pinDigest | -> `65d7f2d` | | [aws-actions/amazon-ecr-login](https://togithub.com/aws-actions/amazon-ecr-login) | action | pinDigest | -> `2fc7ace` | | [aws-actions/amazon-ecs-deploy-task-definition](https://togithub.com/aws-actions/amazon-ecs-deploy-task-definition) | action | pinDigest | -> `df96430` | | [aws-actions/amazon-ecs-render-task-definition](https://togithub.com/aws-actions/amazon-ecs-render-task-definition) | action | pinDigest | -> `4225e0b` | | [aws-actions/configure-aws-credentials](https://togithub.com/aws-actions/configure-aws-credentials) | action | pinDigest | -> `5fd3084` | | darthsim/imgproxy | | pinDigest | -> `0facd35` | | [docker/build-push-action](https://togithub.com/docker/build-push-action) | action | pinDigest | -> `0a97817` | | [docker/build-push-action](https://togithub.com/docker/build-push-action) | action | pinDigest | -> `4a13e50` | | [docker/login-action](https://togithub.com/docker/login-action) | action | pinDigest | -> `465a078` | | [docker/login-action](https://togithub.com/docker/login-action) | action | pinDigest | -> `343f7c4` | | [docker/setup-buildx-action](https://togithub.com/docker/setup-buildx-action) | action | pinDigest | -> `885d146` | | [docker/setup-buildx-action](https://togithub.com/docker/setup-buildx-action) | action | pinDigest | -> `f95db51` | | [docker/setup-qemu-action](https://togithub.com/docker/setup-qemu-action) | action | pinDigest | -> `6882732` | | [google-github-actions/release-please-action](https://togithub.com/google-github-actions/release-please-action) | action | pinDigest | -> `db8f2c6` | | kong | | pinDigest | -> `1b53405` | | [pavelzw/pytest-action](https://togithub.com/pavelzw/pytest-action) | action | pinDigest | -> `510c5e9` | | postgrest/postgrest | | pinDigest | -> `23b2dab` | | python | final | pinDigest | -> `0c1fbb2` | | redis | | pinDigest | -> `a7cee7c` | | supabase/edge-runtime | | pinDigest | -> `4e02aac` | | supabase/gotrue | | pinDigest | -> `b503f1f` | | supabase/logflare | | pinDigest | -> `e693c78` | | supabase/postgres | | pinDigest | -> `fb8387f` | | supabase/postgres-meta | | pinDigest | -> `31a107d` | | supabase/realtime | | pinDigest | -> `634a59e` | | supabase/storage-api | | pinDigest | -> `2cd146f` | | supabase/studio | | pinDigest | -> `393669f` | | timberio/vector | | pinDigest | -> `4bc04ac` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/StanGirard/quivr). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMDMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjEwMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-04 16:00:18 +03:00
uses: aws-actions/amazon-ecs-render-task-definition@4225e0b507142a2e432b018bc3ccb728559b437a # v1
2023-09-21 11:17:33 +03:00
with:
task-definition: ${{ matrix.task_definition }}
container-name: ${{ matrix.container }}
image: ${{env.ECR_REGISTRY}}/${{ env.ECR_REPOSITORY }}:${{ github.sha }}
- name: Deploy Amazon ECS task definition for ${{ matrix.name }}
chore(deps): pin dependencies (#1975) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://togithub.com/actions/checkout) | action | pinDigest | -> `b4ffde6` | | [actions/setup-node](https://togithub.com/actions/setup-node) | action | pinDigest | -> `b39b52d` | | [actions/setup-python](https://togithub.com/actions/setup-python) | action | pinDigest | -> `65d7f2d` | | [aws-actions/amazon-ecr-login](https://togithub.com/aws-actions/amazon-ecr-login) | action | pinDigest | -> `2fc7ace` | | [aws-actions/amazon-ecs-deploy-task-definition](https://togithub.com/aws-actions/amazon-ecs-deploy-task-definition) | action | pinDigest | -> `df96430` | | [aws-actions/amazon-ecs-render-task-definition](https://togithub.com/aws-actions/amazon-ecs-render-task-definition) | action | pinDigest | -> `4225e0b` | | [aws-actions/configure-aws-credentials](https://togithub.com/aws-actions/configure-aws-credentials) | action | pinDigest | -> `5fd3084` | | darthsim/imgproxy | | pinDigest | -> `0facd35` | | [docker/build-push-action](https://togithub.com/docker/build-push-action) | action | pinDigest | -> `0a97817` | | [docker/build-push-action](https://togithub.com/docker/build-push-action) | action | pinDigest | -> `4a13e50` | | [docker/login-action](https://togithub.com/docker/login-action) | action | pinDigest | -> `465a078` | | [docker/login-action](https://togithub.com/docker/login-action) | action | pinDigest | -> `343f7c4` | | [docker/setup-buildx-action](https://togithub.com/docker/setup-buildx-action) | action | pinDigest | -> `885d146` | | [docker/setup-buildx-action](https://togithub.com/docker/setup-buildx-action) | action | pinDigest | -> `f95db51` | | [docker/setup-qemu-action](https://togithub.com/docker/setup-qemu-action) | action | pinDigest | -> `6882732` | | [google-github-actions/release-please-action](https://togithub.com/google-github-actions/release-please-action) | action | pinDigest | -> `db8f2c6` | | kong | | pinDigest | -> `1b53405` | | [pavelzw/pytest-action](https://togithub.com/pavelzw/pytest-action) | action | pinDigest | -> `510c5e9` | | postgrest/postgrest | | pinDigest | -> `23b2dab` | | python | final | pinDigest | -> `0c1fbb2` | | redis | | pinDigest | -> `a7cee7c` | | supabase/edge-runtime | | pinDigest | -> `4e02aac` | | supabase/gotrue | | pinDigest | -> `b503f1f` | | supabase/logflare | | pinDigest | -> `e693c78` | | supabase/postgres | | pinDigest | -> `fb8387f` | | supabase/postgres-meta | | pinDigest | -> `31a107d` | | supabase/realtime | | pinDigest | -> `634a59e` | | supabase/storage-api | | pinDigest | -> `2cd146f` | | supabase/studio | | pinDigest | -> `393669f` | | timberio/vector | | pinDigest | -> `4bc04ac` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/StanGirard/quivr). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMDMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjEwMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-04 16:00:18 +03:00
uses: aws-actions/amazon-ecs-deploy-task-definition@df9643053eda01f169e64a0e60233aacca83799a # v1
2023-09-21 11:17:33 +03:00
with:
task-definition: ${{ steps.task-def.outputs.task-definition }}
service: ${{ matrix.service }}
cluster: ${{ env.ECS_CLUSTER }}
wait-for-service-stability: true