Skip to content

Commit

Permalink
Update to PundiScan
Browse files Browse the repository at this point in the history
  • Loading branch information
fx0x55 committed Aug 30, 2024
1 parent 4021700 commit 558461d
Show file tree
Hide file tree
Showing 6 changed files with 203 additions and 84 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/functionx-publish-docker-image-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Function X Publish Docker image

on:
release:
types: [published]

env:
OTP_VERSION: '25.2.1'
ELIXIR_VERSION: '1.14.3'

jobs:
push_to_registry:
runs-on: ubuntu-latest
env:
RELEASE_VERSION: 5.1.4
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/functionx/blockscout

- name: Build & Push Docker image
uses: docker/build-push-action@v3
with:
context: .
file: ./docker/Dockerfile
push: true
cache-from: type=registry,ref=ghcr.io/functionx/blockscout:buildcache
cache-to: type=registry,ref=ghcr.io/functionx/blockscout:buildcache,mode=max
tags: ghcr.io/functionx/blockscout:latest, ghcr.io/functionx/blockscout:${{ env.RELEASE_VERSION }}-rc2
platforms: |
linux/arm64
linux/amd64
build-args: |
CACHE_EXCHANGE_RATES_PERIOD=
DISABLE_READ_API=false
DISABLE_WEBAPP=false
DISABLE_WRITE_API=false
CACHE_TOTAL_GAS_USAGE_COUNTER_ENABLED=
ADMIN_PANEL_ENABLED=false
DECODE_NOT_A_CONTRACT_CALLS=false
MIXPANEL_URL=
MIXPANEL_TOKEN=
AMPLITUDE_URL=
AMPLITUDE_API_KEY=
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL=
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta
RELEASE_VERSION=${{ env.RELEASE_VERSION }}
Loading

0 comments on commit 558461d

Please sign in to comment.