Skip to content

refactor: refactor the build process #1

refactor: refactor the build process

refactor: refactor the build process #1

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'
jobs:
build-base:
runs-on: ubuntu-latest
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.GITHUB_TOKEN }}
- name: Build and push base
run: |
./build --platform linux/arm64 --tag ghcr.io/${{ github.repository_owner }}/lambda-shell-runtime --push base
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}