53
53
id : meta
54
54
uses : docker/metadata-action@v5
55
55
with :
56
- images : ghcr.io/blockscout/ frontend
56
+ images : ghcr.io/kadena-io/blockscout- frontend
57
57
flavor : |
58
58
latest=false
59
59
tags : |
@@ -71,28 +71,31 @@ jobs:
71
71
echo "ref_type: $REF_TYPE"
72
72
echo "ref_name: $REF_NAME"
73
73
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
77
87
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
84
93
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
87
96
with :
88
97
context : .
89
98
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