Skip to content

Speed up the startup time of the deployer image #2

Speed up the startup time of the deployer image

Speed up the startup time of the deployer image #2

Workflow file for this run

# cspell:word localnet
# Pushes the latest localnet deployer image to Dockerhub. This image handles
# the initialization of the emojicoin contract and test accounts for local
# feature/e2e tests and e2e tests in CI.
---
env:
PUBLISHER_PRIVATE_KEY: >-
0xeaa964d1353b075ac63b0c5a0c1e92aa93355be1402f6077581e37e2a846105e
jobs:
build-push:
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v4'
- id: 'metadata'
uses: 'docker/metadata-action@v5'
with:
images: 'econialabs/emojicoin-dot-fun-deployer'
tags: |
type=match,pattern=emojicoin-dot-fun-deployer-v(.*),group=1
- uses: 'docker/setup-qemu-action@v3'
- uses: 'docker/setup-buildx-action@v3'
- uses: 'docker/login-action@v3'
with:
password: '${{ secrets.DOCKERHUB_TOKEN }}'
username: '${{ secrets.DOCKERHUB_USERNAME }}'
- uses: 'docker/build-push-action@v6'
with:
build-args: |
PUBLISHER_PRIVATE_KEY=${{ env.PUBLISHER_PRIVATE_KEY }}
cache-from: 'type=gha'
cache-to: 'type=gha,mode=max'
context: '.'
file: 'src/docker/deployer/Dockerfile'
labels: '${{ steps.metadata.outputs.labels }}'
platforms: '${{ vars.DOCKER_IMAGE_PLATFORMS }}'
push: 'true'
tags: '${{ steps.metadata.outputs.tags }}'
timeout-minutes: 360
name: 'Build the deployer Docker image and push to Dockerhub'
'on':
push:
tags:
- 'emojicoin-dot-fun-deployer*'
...