From 7d5356378be1f7a093164f8b1b489ad2588c2618 Mon Sep 17 00:00:00 2001 From: Lucas PASCAL Date: Thu, 5 Dec 2024 09:24:32 +0100 Subject: [PATCH] [ci][fix] Speculos builder workflow --- .github/workflows/speculos-builder.yml | 22 ++++++++++++++-------- build.Dockerfile | 2 +- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/speculos-builder.yml b/.github/workflows/speculos-builder.yml index c7ea284f..ccca9264 100644 --- a/.github/workflows/speculos-builder.yml +++ b/.github/workflows/speculos-builder.yml @@ -10,6 +10,13 @@ on: paths: - .github/workflows/speculos-builder.yml - build.Dockerfile + pull_request: + branches: + - master + paths: + - .github/workflows/speculos-builder.yml + - build.Dockerfile + jobs: build: @@ -22,13 +29,12 @@ jobs: - name: Clone uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build and push speculos-builder to GitHub Packages - uses: docker/build-push-action@v1 + uses: docker/build-push-action@v6 with: - dockerfile: build.Dockerfile - repository: ledgerhq/speculos-builder - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - tag_with_sha: true - tags: latest + push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} + file: build.Dockerfile + tags: ghcr.io/ledgerhq/speculos-builder:latest diff --git a/build.Dockerfile b/build.Dockerfile index 845c8b20..2e6f5da6 100644 --- a/build.Dockerfile +++ b/build.Dockerfile @@ -4,7 +4,7 @@ # Support Debian buster & Ubuntu Bionic FROM docker.io/library/python:3.9-slim -ENV LANG C.UTF-8 +ENV LANG=C.UTF-8 RUN export DEBIAN_FRONTEND=noninteractive && \ apt-get update && \