Skip to content

refactor: better output handling in bootstrap #23

refactor: better output handling in bootstrap

refactor: better output handling in bootstrap #23

Workflow file for this run

name: Build Base Image
on:
push:
branches: [ main, develop ]
paths:
- 'Dockerfile'
- 'runtime/**'
- 'task/handler.sh'
- '.github/workflows/build-base.yml'
pull_request:
branches: [ main ]
paths:
- 'Dockerfile'
- 'runtime/**'
- 'task/handler.sh'
permissions:
contents: write
issues: write
pull-requests: write
packages: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-base:
runs-on: ubuntu-latest
env:
HTTP_CLI_VERSION: v1.1.0
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GHCR_PAT }}
- name: Build and push base
run: |
echo "${{ secrets.GHCR_PAT }}" > github_token
docker buildx build \
--platform linux/arm64 \
--provenance=false \
--secret id=github_token,src=github_token \
--build-arg HTTP_CLI_VERSION=${{ env.HTTP_CLI_VERSION }} \
--target base \
--tag ghcr.io/${{ github.repository_owner }}/lambda-shell-runtime:base \
--push \
.
env:
GITHUB_TOKEN: ${{ secrets.GHCR_PAT }}