Skip to content

[WBCAMS-1564] Add search filter #1547

[WBCAMS-1564] Add search filter

[WBCAMS-1564] Add search filter #1547

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: DEV-AMS-CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
#push:
# branches: [ "develop" ]
push:
branches: [ "ams" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# required for OIDC auth
permissions:
id-token: write
contents: read
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Pull AWS credentials
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN_TO_USE_TOOLS }}
aws-region: ${{ secrets.AWS_REGION }}
#aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
#aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
#aws-region: ${{ secrets.AWS_REGION }}
#role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
#role-duration-seconds: 900
#role-session-name: workbc-github-action
#role-skip-session-tagging: true
# Login to ECR
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
# Runs a single command using the runners shell
- name: Build Drupal docker image
run: |
docker build . -t ${{ secrets.AWS_ECR_URI }}:${{ github.sha }} --build-arg GITHUB_SHA=${{ github.sha }} --build-arg TIMEOUT=1s --build-arg MAX_CHILDREN=250 --build-arg START_SERVERS=10 --build-arg MIN_SPARE=5 --build-arg MAX_SPARE=15 --build-arg SPAWN_RATE=32
- name: Push Drupal docker image
run: |
docker push ${{ secrets.AWS_ECR_URI }}:${{ github.sha }}