Skip to content

Commit 8a646aa

Browse files
committed
chore: introduce our own publish image
1 parent 631c7a3 commit 8a646aa

File tree

1 file changed

+24
-21
lines changed

1 file changed

+24
-21
lines changed

.github/workflows/publish-image.yml

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
id: meta
5454
uses: docker/metadata-action@v5
5555
with:
56-
images: ghcr.io/blockscout/frontend
56+
images: ghcr.io/kadena-io/blockscout-frontend
5757
flavor: |
5858
latest=false
5959
tags: |
@@ -71,28 +71,31 @@ jobs:
7171
echo "ref_type: $REF_TYPE"
7272
echo "ref_name: $REF_NAME"
7373
74-
- name: Setup repo
75-
uses: blockscout/actions/.github/actions/setup-multiarch-buildx@no-metadata
76-
id: setup
74+
- name: Log in GHCR
75+
run: |
76+
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
77+
78+
- name: Set up QEMU
79+
uses: docker/setup-qemu-action@v3
80+
81+
- name: Set up Docker Buildx
82+
uses: docker/setup-buildx-action@v3
83+
84+
- name: Docker Meta for blockscout-frontend
85+
id: meta-blockscout-frontend
86+
uses: docker/metadata-action@v5
7787
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 }}
88+
images: |
89+
ghcr.io/kadena-community/blockscout-frontend
90+
tags: |
91+
type=ref,event=branch
92+
type=sha,format=long
8493
85-
- name: Build and push
86-
uses: docker/build-push-action@v5
94+
- name: Build and Push blockscout-frontend image
95+
uses: docker/build-push-action@v6
8796
with:
8897
context: .
8998
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 }}
99+
push: ${{ github.event_name != 'pull_request' }}
100+
tags: ${{ steps.meta-blockscout-frontend.outputs.tags }}
101+
labels: ${{ steps.meta-blockscout-frontend.outputs.labels }}

0 commit comments

Comments
 (0)