Skip to content

Commit

Permalink
fix: added automatic build on master refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
n4l5u0r committed Dec 2, 2024
1 parent 4c8edce commit e4bc9c6
Showing 1 changed file with 33 additions and 10 deletions.
43 changes: 33 additions & 10 deletions .github/workflows/speculos-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ on:
push:
branches:
- master
paths:
- .github/workflows/speculos-builder.yml
- build.Dockerfile


jobs:
build:
name: Build and push speculos-builder image
Expand All @@ -22,13 +19,39 @@ jobs:
- name: Clone
uses: actions/checkout@v4

- name: Build and push speculos-builder to GitHub Packages
uses: docker/build-push-action@v1
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
dockerfile: build.Dockerfile
repository: blooo-io/speculos-builder
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
tag_with_sha: true
tags: latest

- name: Build and push speculos-builder to GitHub Packages
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
dockerfile: build.Dockerfile
push: true
registry: ghcr.io
tags: |
ghcr.io/blooo-io/speculos-builder:latest
ghcr.io/blooo-io/speculos-builder:sha-${{ github.sha }}
- name: Build and push speculos to GitHub Packages
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
dockerfile: Dockerfile
push: true
registry: ghcr.io
tags: |
ghcr.io/blooo-io/speculos:latest
ghcr.io/blooo-io/speculos:sha-${{ github.sha }}

0 comments on commit e4bc9c6

Please sign in to comment.