Skip to content

Commit

Permalink
Merge pull request #1 from blooo-io/fix/docker-image-host
Browse files Browse the repository at this point in the history
fix: change host image
  • Loading branch information
n4l5u0r authored Nov 29, 2024
2 parents 0b87eeb + 0a37bb3 commit 7c6727a
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Build and release
on:
push:
branches:
- master
workflow_dispatch:

jobs:
Expand All @@ -14,11 +16,12 @@ jobs:
run: |
echo "speculosHash=$(git ls-remote https://github.com/LedgerHQ/speculos | head -n 1 | awk '{print $1}')" >> $GITHUB_OUTPUT
echo "hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Login to Docker Hub
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU # to build multitarget containers
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand All @@ -30,6 +33,6 @@ jobs:
platforms: linux/amd64,linux/arm64
push: ${{ (github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main')) || github.event_name == 'workflow_dispatch' }}
tags: >-
zondax/builder-zemu:${{ steps.hash.outputs.hash }},
zondax/builder-zemu:latest,
zondax/builder-zemu:speculos-${{ steps.hash.outputs.speculosHash }}
ghcr.io/${{ github.repository_owner }}/builder-zemu:${{ steps.hash.outputs.hash }},
ghcr.io/${{ github.repository_owner }}/builder-zemu:latest,
ghcr.io/${{ github.repository_owner }}/builder-zemu:speculos-${{ steps.hash.outputs.speculosHash }}

0 comments on commit 7c6727a

Please sign in to comment.