Skip to content

Commit

Permalink
Merge branch 'next' into dependabot/npm_and_yarn/Contentful-Schema/ax…
Browse files Browse the repository at this point in the history
…ios-and-contentful-export-1.6.1
  • Loading branch information
killij authored Jan 10, 2024
2 parents 8f07eb9 + 1575d12 commit da6fdd5
Show file tree
Hide file tree
Showing 63 changed files with 1,047 additions and 549 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/app-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:

steps:

- name: Docker pull check
run: docker pull ghcr.io/dfe-digital/childrens-social-care-cpd:${{inputs.tag}}

- name: Sign in to Azure
uses: azure/login@v1
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- main
- next

permissions:
contents: read # for checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-dev-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Run integration tests
on:
pull_request:
branches:
- master
- main
- next
jobs:
build-test-scan:
name: Build image and integration test
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,16 @@ jobs:

# Sort out the image tags
- name: Set initial tag
run: echo "\=${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LOWER }}:${{ env.RELEASE_TAG }}" >> $GITHUB_ENV
run: echo "IMAGE_TAGS=${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LOWER }}:${{ env.RELEASE_TAG }}" >> $GITHUB_ENV

- name: Add latest tag if we're not production release
if: contains(env.RELEASE_TAG, "dev")
run: echo "IMAGE_TAGS=${IMAGE_TAGS},${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LOWER }}:latest" >> $GITHUB_ENV
if: contains(env.RELEASE_TAG, 'next')
run: echo "IMAGE_TAGS=${{ env.IMAGE_TAGS }},${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LOWER }}:latest" >> $GITHUB_ENV

#debug
- name: Log the tags
run: echo "Calculated tags value => ${{ env.IMAGE_TAGS }}"


# Workaround: https://github.com/docker/build-push-action/issues/461
- name: Setup Docker buildx
uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf
Expand Down Expand Up @@ -86,7 +85,7 @@ jobs:
with:
context: Childrens-Social-Care-CPD
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LOWER }}:${{ env.RELEASE_TAG }},${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LOWER }}:latest
tags: ${{ env.IMAGE_TAGS }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
VCSREF=${{ env.sha_short }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: .NET Test

on:
pull_request:
branches: [ "master", "main" ]
branches: [ "main", "next" ]

jobs:
test:
Expand Down
42 changes: 0 additions & 42 deletions .github/workflows/end-to-end-test.yml

This file was deleted.

10 changes: 6 additions & 4 deletions .github/workflows/load-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ jobs:
run: terraform -chdir=Terraform apply -auto-approve -input=false

- name: Install Locust Load Test Tool
run: pip3 install locust
run: |
pip3 install locust
pip3 install charset_normalizer
- name: Sign in to Azure
uses: azure/login@v1
Expand All @@ -75,11 +77,11 @@ jobs:
- name: Whitelist Runner IP
run: az network nsg rule create -g s185d03-childrens-social-care-cpd-rg --nsg-name s185d03-chidrens-social-care-cpd-sn01-nsg -n GitHubRunnerRule --priority 4000 --source-address-prefixes ${{ env.theIP }} --source-port-ranges '*' --destination-address-prefixes '*' --destination-port-ranges '*' --access Allow --protocol Tcp --description "Allow Access from GitHub Action"

- name: Wait for 15 minutes
run: sleep 900s
- name: Wait for 10 minutes
run: sleep 600s

- name: Run Load Test
run: locust -f ./LoadTest/locustfile.py --headless -u 50 -r 1 --run-time 60s -H https://20.107.65.156/
run: locust -f ./LoadTest/locustfile.py --headless -u 5 -r 10 --run-time 300s -H https://20.107.65.156/

- name: Terraform Destroy 3
if: always()
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
on:
pull_request:
branches:
- master
- main
- next
jobs:
code-analysis:
name: Static code analysis
Expand Down Expand Up @@ -62,5 +62,5 @@
/d:sonar.token="${{ secrets.SONAR_TOKEN }}" \
/d:sonar.host.url="https://sonarcloud.io"
dotnet build --no-incremental
dotnet-coverage collect -f xml -o coverage.xml "dotnet test"
dotnet-coverage collect --settings dotnet-cover-config.xml -f xml -o coverage.xml "dotnet test"
dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
2 changes: 1 addition & 1 deletion .github/workflows/terraform-fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Terraform Format'

on:
pull_request:
branches: [ "master", "main" ]
branches: [ "main", "next" ]

jobs:
terraform-fmt:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/terraform-tflint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Terraform TFLint'

on:
pull_request:
branches: [ "master", "main" ]
branches: [ "main", "next" ]

jobs:
terraform-tflint:
Expand Down
2 changes: 1 addition & 1 deletion .releaserc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"branches": ["main"],
"branches": ["main", { "name": "next", "prerelease": true }],
"dryRun": false,
"ci": true,
"plugins": [
Expand Down
Loading

0 comments on commit da6fdd5

Please sign in to comment.