Skip to content

Commit b90c221

Browse files
committed
refactor: update http-cli version and improve the build process. also documents how to generate new builds when updating the http-cli version
1 parent 46d7cc8 commit b90c221

File tree

5 files changed

+34
-2
lines changed

5 files changed

+34
-2
lines changed

.github/workflows/build-and-release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ concurrency:
2222
jobs:
2323
build-base:
2424
runs-on: ubuntu-latest
25+
env:
26+
HTTP_CLI_VERSION: v1.1.0
2527
steps:
2628
- uses: actions/checkout@v3
2729
- name: Set up Docker Buildx
@@ -47,6 +49,7 @@ jobs:
4749
--platform linux/arm64,linux/amd64 \
4850
--provenance=false \
4951
--secret id=github_token,src=github_token \
52+
--build-arg HTTP_CLI_VERSION=${{ env.HTTP_CLI_VERSION }} \
5053
--target base \
5154
--tag ghcr.io/${{ github.repository_owner }}/lambda-shell-runtime:base \
5255
--tag public.ecr.aws/j5r7n1v7/lambda-shell-runtime:base \
@@ -60,7 +63,7 @@ jobs:
6063
runs-on: ubuntu-latest
6164
if: github.event.pull_request.draft == false || github.event_name != 'pull_request'
6265
env:
63-
HTTP_CLI_VERSION: v1.0.1
66+
HTTP_CLI_VERSION: v1.1.0
6467
steps:
6568
- uses: actions/checkout@v3
6669
- uses: actions/setup-node@v3

.github/workflows/build-base.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ concurrency:
2828
jobs:
2929
build-base:
3030
runs-on: ubuntu-latest
31+
env:
32+
HTTP_CLI_VERSION: v1.1.0
3133
steps:
3234
- uses: actions/checkout@v4
3335

@@ -48,6 +50,7 @@ jobs:
4850
--platform linux/arm64 \
4951
--provenance=false \
5052
--secret id=github_token,src=github_token \
53+
--build-arg HTTP_CLI_VERSION=${{ env.HTTP_CLI_VERSION }} \
5154
--target base \
5255
--tag ghcr.io/${{ github.repository_owner }}/lambda-shell-runtime:base \
5356
--push \

.github/workflows/build-installers.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ concurrency:
1818
jobs:
1919
build-installers:
2020
runs-on: ubuntu-latest
21+
env:
22+
HTTP_CLI_VERSION: v1.1.0
2123
steps:
2224
- uses: actions/checkout@v4
2325

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM public.ecr.aws/lambda/provided:al2023 AS builder
22

3-
ARG HTTP_CLI_VERSION=v1.0.1
3+
ARG HTTP_CLI_VERSION=v1.1.0
44

55
RUN dnf install -y unzip && \
66
dnf clean all

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,30 @@ The shell runtime is **highly competitive** with official runtimes while providi
244244
# Optimize shell script performance
245245
```
246246

247+
## Updating http-cli Version
248+
249+
The runtime includes [http-cli](https://github.com/ql4b/http-cli) for simplified HTTP operations. To update to a newer version:
250+
251+
1. **Update version in all configuration files:**
252+
- `.github/workflows/build-and-release.yml` (2 locations)
253+
- `.github/workflows/build-base.yml`
254+
- `.github/workflows/build-installers.yml`
255+
- `Dockerfile` (ARG HTTP_CLI_VERSION)
256+
- `build-enhanced` script (default value)
257+
258+
2. **Trigger a new build:**
259+
```bash
260+
# Push changes to trigger GitHub Actions
261+
git add .
262+
git commit -m "Update http-cli to vX.X.X"
263+
git push origin develop
264+
```
265+
266+
3. **Or build locally:**
267+
```bash
268+
HTTP_CLI_VERSION=v1.2.0 ./build-enhanced --load tiny
269+
```
270+
247271
## Contributing
248272

249273
We welcome contributions! Please see our [contributing guidelines](CONTRIBUTING.md) for details.

0 commit comments

Comments
 (0)