Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci][fix] Speculos builder workflow #531

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions .github/workflows/speculos-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
2 changes: 1 addition & 1 deletion build.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down
Loading