From b46d749bb194a14dd035d2eb0102a5a81a4e7e11 Mon Sep 17 00:00:00 2001 From: n4l5u0r <59141606+n4l5u0r@users.noreply.github.com> Date: Fri, 29 Nov 2024 20:05:18 +0100 Subject: [PATCH 1/2] fix: change host image --- .github/workflows/main.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 95c706f..19189f9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,11 +14,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 @@ -30,6 +31,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 }} From 0a37bb3e4ab4e000f9bfb25b20acb5988bfef9dd Mon Sep 17 00:00:00 2001 From: n4l5u0r <59141606+n4l5u0r@users.noreply.github.com> Date: Fri, 29 Nov 2024 20:11:21 +0100 Subject: [PATCH 2/2] fix: only on push to master --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 19189f9..13d303e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,8 @@ name: Build and release on: push: + branches: + - master workflow_dispatch: jobs: