Commit 8f6e3e2a authored by tom goriunov's avatar tom goriunov Committed by GitHub

Merge pull request #1513 from blockscout/vb-generate-multiplatform-image

Generate multiplatform image
parents 06449e97 cd536ba6
...@@ -20,15 +20,15 @@ jobs: ...@@ -20,15 +20,15 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check out the repo - name: Check out the repo
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v3
# Will automatically make nice tags, see the table here https://github.com/docker/metadata-action#basic # Will automatically make nice tags, see the table here https://github.com/docker/metadata-action#basic
- name: Docker meta - name: Docker meta
id: meta id: meta
uses: docker/metadata-action@v4 uses: docker/metadata-action@v5
with: with:
images: ghcr.io/blockscout/frontend images: ghcr.io/blockscout/frontend
...@@ -51,13 +51,16 @@ jobs: ...@@ -51,13 +51,16 @@ jobs:
echo "ref_name: $REF_NAME" echo "ref_name: $REF_NAME"
- name: Build and push - name: Build and push
uses: docker/build-push-action@v3 uses: docker/build-push-action@v5
with: with:
context: . context: .
file: ./Dockerfile file: ./Dockerfile
push: true push: true
cache-from: type=gha cache-from: type=gha
tags: ${{ inputs.tags || steps.meta.outputs.tags }} tags: ${{ inputs.tags || steps.meta.outputs.tags }}
platforms: |
linux/amd64
linux/arm64/v8
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
build-args: | build-args: |
GIT_COMMIT_SHA=${{ env.SHORT_SHA }} GIT_COMMIT_SHA=${{ env.SHORT_SHA }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment