-
Notifications
You must be signed in to change notification settings - Fork 20
44 lines (44 loc) · 1.45 KB
/
push-deployer.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# 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*'
...