Skip to content

Commit

Permalink
Merge pull request #243 from CruGlobal/update-to-nodejs20.x
Browse files Browse the repository at this point in the history
Bump all runtimes to node20, update actions and dependencies.
  • Loading branch information
Omicron7 authored Apr 26, 2024
2 parents 4992021 + d5daf9b commit 378bdbe
Show file tree
Hide file tree
Showing 32 changed files with 2,178 additions and 4,069 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/aem-cloud-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:

# Service containers to run with `runner-job`
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'adopt'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/aem-cloud-repo-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:

# Service containers to run with `runner-job`
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: set git config
run: |
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/build-ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
contents: read
steps:
- name: Checkout Cru Actions & Workflows
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: CruGlobal/.github
ref: ${{ inputs.workflow-ref }}
Expand All @@ -44,7 +44,7 @@ jobs:
id: env

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: ${{ steps.env.outputs.ecs-task-role-arn }}
Expand All @@ -59,20 +59,22 @@ jobs:
name: ${{ steps.env.outputs.project-name }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
id: buildx
with:
driver-opts: network=${{ steps.env.outputs.project-name }}

- name: Login to ECR
uses: aws-actions/amazon-ecr-login@v1
uses: aws-actions/amazon-ecr-login@v2
id: ecr
with:
mask-password: true

- name: Cache Docker Layers
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
key: "${{ runner.os }}-buildx-${{ github.sha }}"
restore-keys: |
${{ runner.os }}-buildx
Expand All @@ -82,7 +84,7 @@ jobs:
type: BUILD

- name: Checkout Project
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: project

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set Node.js 16.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '20'

- name: Install dependencies
run: npm ci
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
DD_API_KEY: ${{ secrets.datadog-api-key }}
steps:
- name: Checkout Cru Actions & Workflows
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: CruGlobal/.github
ref: ${{ inputs.workflow-ref }}
Expand All @@ -54,7 +54,7 @@ jobs:
run: npx @datadog/datadog-ci tag --level pipeline --tags "service:$PROJECT_NAME" --tags "environment:$ENVIRONMENT" --tags "build_number:$BUILD_NUMBER"

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::056154071827:role/GitHubDeployECS
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deploy-serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
contents: read
steps:
- name: Checkout Cru Actions & Workflows
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: CruGlobal/.github
ref: ${{ inputs.workflow-ref }}
Expand All @@ -43,7 +43,7 @@ jobs:
id: env

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: ${{ steps.env.outputs.ecs-task-role-arn }}
Expand All @@ -53,12 +53,12 @@ jobs:
id: build-number

- name: Checkout Project
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: project

- name: Setup NodeJS 18.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'yarn'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
name: Update Release Tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: sersoft-gmbh/running-release-tags-action@v2
- uses: actions/checkout@v4
- uses: sersoft-gmbh/running-release-tags-action@v3
with:
tag: v1.2.0
tag: v1.3.0
update-minor: false
create-release: false
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 18.18.2
nodejs 20.12.2
2 changes: 1 addition & 1 deletion actions/build-number/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ outputs:
build-number:
description: Build number. Also exported to BUILD_NUMBER environment variable.
runs:
using: 'node16'
using: 'node20'
main: '../../dist/build-number.js'
2 changes: 1 addition & 1 deletion actions/deploy-ecs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ inputs:
required: false

runs:
using: 'node16'
using: 'node20'
main: '../../dist/deploy-ecs.js'
2 changes: 1 addition & 1 deletion actions/docker-network/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ inputs:
description: Docker network name
required: true
runs:
using: 'node16'
using: 'node20'
main: '../../dist/docker-network.js'
post: '../../dist/docker-network.js'
2 changes: 1 addition & 1 deletion actions/secrets/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ inputs:
required: false
default: BUILD
runs:
using: 'node16'
using: 'node20'
main: '../../dist/secrets.js'
2 changes: 1 addition & 1 deletion actions/setup-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ outputs:
ecs-task-role-arn:
description: AWS IAM Role ARN used to build/deploy the project.
runs:
using: 'node16'
using: 'node20'
main: '../../dist/setup-env.js'
2 changes: 1 addition & 1 deletion actions/trigger-deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ inputs:
description: The GitHub token used to create a workflow_dispatch event.
required: true
runs:
using: 'node16'
using: 'node20'
main: '../../dist/trigger-deploy.js'
2 changes: 1 addition & 1 deletion dist/build-number.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/build-number.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 378bdbe

Please sign in to comment.