Skip to content

Add linux arm musl build #9

Add linux arm musl build

Add linux arm musl build #9

Workflow file for this run

name: Build and Push Docker Images
on:
push:
branches:
- master
paths:
- 'docker/build-arm7-musl/*'
pull_request:
types:
- synchronize
- opened
- reopened
paths:
- 'docker/build-arm7-musl/*'
permissions:
contents: read
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-build-arm7-musl
restore-keys: |
${{ runner.os }}-buildx-
- name: Build and Push Docker image
uses: docker/build-push-action@v3
with:
context: ./docker/build-arm7-musl
file: ./docker/build-arm7-musl/Dockerfile
push: true
tags: ghcr.io/rollup/rollup/build-arm7-musl
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache