2023-07-08 01:19:37 +00:00
|
|
|
name: musl-build-image
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: master
|
|
|
|
paths:
|
|
|
|
- .github/actions/muslbuilder/Dockerfile
|
|
|
|
- .github/actions/muslbuilder/entrypoint.sh
|
|
|
|
- .github/workflows/musl-build-image.yml
|
|
|
|
|
2023-07-09 06:05:21 +00:00
|
|
|
concurrency:
|
|
|
|
group: musl-build-image
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2023-07-08 01:19:37 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2023-07-09 12:50:04 +00:00
|
|
|
env:
|
|
|
|
CONTAINER_TAG: tstack/lnav-build:latest
|
2023-07-08 01:19:37 +00:00
|
|
|
steps:
|
2023-07-09 03:25:10 +00:00
|
|
|
-
|
|
|
|
name: checkout code
|
2023-07-08 01:19:37 +00:00
|
|
|
uses: actions/checkout@v2
|
2023-07-09 03:25:10 +00:00
|
|
|
-
|
|
|
|
name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v2
|
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
-
|
|
|
|
name: Login to Docker Hub
|
|
|
|
uses: docker/login-action@v2
|
2023-07-08 01:19:37 +00:00
|
|
|
with:
|
2023-07-09 03:25:10 +00:00
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
-
|
|
|
|
name: Build and push
|
|
|
|
uses: docker/build-push-action@v4
|
|
|
|
with:
|
|
|
|
context: ${{ github.workspace }}/.github/actions/muslbuilder/
|
2023-07-09 06:05:21 +00:00
|
|
|
platforms: linux/amd64, linux/arm/v7, linux/arm64
|
2023-07-09 03:25:10 +00:00
|
|
|
push: true
|
2023-07-09 12:50:04 +00:00
|
|
|
tags: ${{ env.CONTAINER_TAG }}
|
|
|
|
cache-from: type=registry,ref=${{ env.CONTAINER_TAG }}-buildcache
|
|
|
|
cache-to: type=registry,ref=${{ env.CONTAINER_TAG }}-buildcache,mode=max
|