Build keyserver Docker image and upload to Docker Hub #35
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build keyserver Docker image and upload to Docker Hub | |
on: | |
push: | |
tags: | |
- keyserver-** | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{secrets.DOCKER_USERNAME}} | |
password: ${{secrets.DOCKER_PASSWORD}} | |
- name: Determine current keyserverCodeVersion | |
id: keyserver_code_version | |
run: | | |
echo "patch_version=`grep keyserverCodeVersion keyserver/src/version.js | sed -r 's/^[^0-9]*([0-9]+);$/\1/g'`" >> $GITHUB_OUTPUT | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Build and push Docker image | |
id: push | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: ./keyserver/Dockerfile | |
push: true | |
tags: commapp/keyserver:1.0.${{steps.keyserver_code_version.outputs.patch_version}} | |
platforms: linux/arm64 | |
build-args: | | |
HOST_GID=20 | |
HOST_UID=501 | |
COMM_JSONCONFIG_secrets_alchemy={"key":"${{secrets.ALCHEMY_API_KEY}}"} | |
COMM_JSONCONFIG_secrets_walletconnect={"key":"${{secrets.WALLETCONNECT_API_KEY}}"} | |
COMM_JSONCONFIG_secrets_neynar={"key":"${{secrets.NEYNAR_API_KEY}}"} | |
COMM_JSONCONFIG_secrets_geoip_license={"key":"${{secrets.GEOIP_LICENSE}}"} |