Skip to content
This repository was archived by the owner on Jan 9, 2026. It is now read-only.

Commit bfaf267

Browse files
committed
chore: use our own docker image publish flow
1 parent 7b73bc4 commit bfaf267

File tree

1 file changed

+25
-21
lines changed

1 file changed

+25
-21
lines changed

.github/workflows/publish-image.yml

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ on:
2020
default: |
2121
linux/amd64
2222
linux/arm64/v8
23+
2324
workflow_call:
2425
inputs:
2526
tags:
@@ -53,7 +54,7 @@ jobs:
5354
id: meta
5455
uses: docker/metadata-action@v5
5556
with:
56-
images: ghcr.io/blockscout/frontend
57+
images: ghcr.io/kadena-io/blockscout-frontend
5758
flavor: |
5859
latest=false
5960
tags: |
@@ -71,28 +72,31 @@ jobs:
7172
echo "ref_type: $REF_TYPE"
7273
echo "ref_name: $REF_NAME"
7374
74-
- name: Setup repo
75-
uses: blockscout/actions/.github/actions/setup-multiarch-buildx@no-metadata
76-
id: setup
75+
- name: Log in GHCR
76+
run: |
77+
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
78+
79+
- name: Set up QEMU
80+
uses: docker/setup-qemu-action@v3
81+
82+
- name: Set up Docker Buildx
83+
uses: docker/setup-buildx-action@v3
84+
85+
- name: Docker Meta for blockscout-frontend
86+
id: meta-blockscout-frontend
87+
uses: docker/metadata-action@v5
7788
with:
78-
docker-image: ghcr.io/blockscout/frontend
79-
docker-username: ${{ github.actor }}
80-
docker-password: ${{ secrets.GITHUB_TOKEN }}
81-
docker-remote-multi-platform: true
82-
docker-arm-host: ${{ secrets.ARM_RUNNER_HOSTNAME }}
83-
docker-arm-host-key: ${{ secrets.ARM_RUNNER_KEY }}
89+
images: |
90+
ghcr.io/kadena-community/blockscout-frontend
91+
tags: |
92+
type=ref,event=branch
93+
type=sha,format=long
8494
85-
- name: Build and push
86-
uses: docker/build-push-action@v5
95+
- name: Build and Push blockscout-frontend image
96+
uses: docker/build-push-action@v6
8797
with:
8898
context: .
8999
file: ./Dockerfile
90-
push: true
91-
cache-from: type=gha
92-
tags: ${{ steps.meta.outputs.tags }}
93-
platforms: ${{ inputs.platforms }}
94-
labels: ${{ steps.meta.outputs.labels }}
95-
build-args: |
96-
GIT_COMMIT_SHA=${{ env.SHORT_SHA }}
97-
GIT_TAG=${{ github.ref_type == 'tag' && github.ref_name || '' }}
98-
${{ inputs.build_args }}
100+
push: ${{ github.event_name != 'pull_request' }}
101+
tags: ${{ steps.meta-blockscout-frontend.outputs.tags }}
102+
labels: ${{ steps.meta-blockscout-frontend.outputs.labels }}

0 commit comments

Comments
 (0)