Skip to content

Commit

Permalink
docs: Updated the README.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzyx committed Dec 21, 2024
1 parent a2751db commit d45f06b
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
fail-fast: true
name: Build Intel64
runs-on: [ubuntu-latest]
outputs:
sha256: ${{ steps.build.outputs.hash }}
steps:
- name: Create Buildx driver
run: |
Expand All @@ -29,6 +31,7 @@ jobs:
git clone https://github.com/aws/aws-lambda-base-images.git --branch provided.al2023 --single-branch __aws__
- name: Build
id: build
run: |
set -euxo pipefail
cd __aws__/x86_64/ && \
Expand All @@ -41,13 +44,15 @@ jobs:
. 2>&1
)"
echo "INTEL64_HASH=$(echo "$output" | grep "exporting manifest list" | awk '{print $5}')" >> $GITHUB_ENV
echo "hash=$(echo "$output" | grep "exporting manifest list" | awk '{print $5}')" >> $GITHUB_OUTPUT
build_arm64:
strategy:
fail-fast: true
name: Build ARM64
runs-on: [ubuntu-latest]
outputs:
sha256: ${{ steps.build.outputs.hash }}
steps:
- name: Create Buildx driver
run: |
Expand All @@ -62,6 +67,7 @@ jobs:
git clone https://github.com/aws/aws-lambda-base-images.git --branch provided.al2023 --single-branch __aws__
- name: Build
id: build
run: |
set -euxo pipefail
cd __aws__/arm64/ && \
Expand All @@ -74,7 +80,7 @@ jobs:
. 2>&1
)"
echo "ARM64_HASH=$(echo "$output" | grep "exporting manifest list" | awk '{print $5}')" >> $GITHUB_ENV
echo "hash=$(echo "$output" | grep "exporting manifest list" | awk '{print $5}')" >> $GITHUB_OUTPUT
merge:
needs: [build_intel64, build_arm64]
Expand All @@ -96,6 +102,6 @@ jobs:
set -euxo pipefail
docker buildx imagetools create \
-t ghcr.io/northwood-labs/lambda-provided-al2023:latest \
ghcr.io/northwood-labs/lambda-provided-al2023@${{ env.INTEL64_HASH }} \
ghcr.io/northwood-labs/lambda-provided-al2023@${{ env.ARM64_HASH }} \
ghcr.io/northwood-labs/lambda-provided-al2023@${{ needs.build_intel64.outputs.sha256 }} \
ghcr.io/northwood-labs/lambda-provided-al2023@${{ needs.build_arm64.outputs.sha256 }} \
;

0 comments on commit d45f06b

Please sign in to comment.