Skip to content

v2.26.2: hotfix for indexer service dependencies #118

v2.26.2: hotfix for indexer service dependencies

v2.26.2: hotfix for indexer service dependencies #118

Workflow file for this run

name: Publish Images
on:
workflow_dispatch:
description: 'Manual run'
release:
types: [published]
permissions:
contents: read
jobs:
docker:
name: Publish to Docker
runs-on: [self-hosted, Linux, medium, ephemeral]
permissions:
id-token: write
contents: read
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- name: Conditional values for Github Action
uses: haya14busa/action-cond@94f77f7a80cd666cb3155084e428254fea4281fd # v1.2.1
id: latestTag
with:
cond: ${{ github.event.release.target_commitish == 'main' }}
if_true: "latest"
if_false: "hotfix"
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@3cf273023a0dda27efcd3164bdfb51908dd46a5b # v1.3.1
with:
path: guardian-service
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/auth@71fee32a0bb7e97b4d33d548e7d957010649d8fa # v2.1.3
with:
workload_identity_provider: 'projects/101730247931/locations/global/workloadIdentityPools/hedera-registry-pool/providers/hedera-registry-gh-actions'
service_account: '[email protected]'
token_format: 'access_token'
- name: Docker Login
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0
with:
registry: 'gcr.io' # or REGION-docker.pkg.dev
username: 'oauth2accesstoken'
password: '${{ steps.auth.outputs.access_token }}'
- name: application-events-latest
if: ${{ steps.latestTag.outputs.value == 'latest'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./application-events/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/application-events:${{ steps.package-version.outputs.current-version}}, gcr.io/hedera-registry/application-events:latest'
- name: application-events
if: ${{ steps.latestTag.outputs.value == 'hotfix'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./application-events/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/application-events:${{ steps.package-version.outputs.current-version}}'
- name: ai-service-latest
if: ${{ steps.latestTag.outputs.value == 'latest'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./ai-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/ai-service:${{ steps.package-version.outputs.current-version}}, gcr.io/hedera-registry/ai-service:latest'
- name: ai-service
if: ${{ steps.latestTag.outputs.value == 'hotfix'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./ai-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/ai-service:${{ steps.package-version.outputs.current-version}}'
- name: logger-service-latest
if: ${{ steps.latestTag.outputs.value == 'latest'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./logger-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/logger-service:${{ steps.package-version.outputs.current-version}}, gcr.io/hedera-registry/logger-service:latest'
- name: logger-service
if: ${{ steps.latestTag.outputs.value == 'hotfix'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./logger-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/logger-service:${{ steps.package-version.outputs.current-version}}'
- name: notification-service-latest
if: ${{ steps.latestTag.outputs.value == 'latest'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./notification-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/notification-service:${{ steps.package-version.outputs.current-version}}, gcr.io/hedera-registry/notification-service:latest'
- name: notification-service
if: ${{ steps.latestTag.outputs.value == 'hotfix'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./notification-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/notification-service:${{ steps.package-version.outputs.current-version}}'
- name: auth-service-latest
if: ${{ steps.latestTag.outputs.value == 'latest'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./auth-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/auth-service:${{ steps.package-version.outputs.current-version}}, gcr.io/hedera-registry/auth-service:latest'
- name: auth-service-demo-latest
if: ${{ steps.latestTag.outputs.value == 'latest'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./auth-service/Dockerfile.demo
push: true
tags: 'gcr.io/hedera-registry/auth-service-demo:${{ steps.package-version.outputs.current-version}}, gcr.io/hedera-registry/auth-service-demo:latest'
- name: auth-service
if: ${{ steps.latestTag.outputs.value == 'hotfix'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./auth-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/auth-service:${{ steps.package-version.outputs.current-version}}'
- name: auth-service-demo
if: ${{ steps.latestTag.outputs.value == 'hotfix'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./auth-service/Dockerfile.demo
push: true
tags: 'gcr.io/hedera-registry/auth-service-demo:${{ steps.package-version.outputs.current-version}}'
- name: api-gateway-latest
if: ${{ steps.latestTag.outputs.value == 'latest'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./api-gateway/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/api-gateway:${{ steps.package-version.outputs.current-version}}, gcr.io/hedera-registry/api-gateway:latest'
- name: api-gateway-demo-latest
if: ${{ steps.latestTag.outputs.value == 'latest'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./api-gateway/Dockerfile.demo
push: true
tags: 'gcr.io/hedera-registry/api-gateway-demo:${{ steps.package-version.outputs.current-version}}, gcr.io/hedera-registry/api-gateway-demo:latest'
- name: api-gateway
if: ${{ steps.latestTag.outputs.value == 'hotfix'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./api-gateway/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/api-gateway:${{ steps.package-version.outputs.current-version}}'
- name: api-gateway-demo
if: ${{ steps.latestTag.outputs.value == 'hotfix'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./api-gateway/Dockerfile.demo
push: true
tags: 'gcr.io/hedera-registry/api-gateway-demo:${{ steps.package-version.outputs.current-version}}'
- name: policy-service-latest
if: ${{ steps.latestTag.outputs.value == 'latest'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./policy-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/policy-service:${{ steps.package-version.outputs.current-version}}, gcr.io/hedera-registry/policy-service:latest'
- name: policy-service
if: ${{ steps.latestTag.outputs.value == 'hotfix'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./policy-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/policy-service:${{ steps.package-version.outputs.current-version}}'
- name: guardian-service-latest
if: ${{ steps.latestTag.outputs.value == 'latest'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./guardian-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/guardian-service:${{ steps.package-version.outputs.current-version}}, gcr.io/hedera-registry/guardian-service:latest'
- name: guardian-service
if: ${{ steps.latestTag.outputs.value == 'hotfix'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./guardian-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/guardian-service:${{ steps.package-version.outputs.current-version}}'
- name: worker-service-latest
if: ${{ steps.latestTag.outputs.value == 'latest'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./worker-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/worker-service:${{ steps.package-version.outputs.current-version}}, gcr.io/hedera-registry/worker-service:latest'
- name: worker-service
if: ${{ steps.latestTag.outputs.value == 'hotfix'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./worker-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/worker-service:${{ steps.package-version.outputs.current-version}}'
- name: queue-service-latest
if: ${{ steps.latestTag.outputs.value == 'latest'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./queue-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/queue-service:${{ steps.package-version.outputs.current-version}}, gcr.io/hedera-registry/queue-service:latest'
- name: queue-service
if: ${{ steps.latestTag.outputs.value == 'hotfix'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./queue-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/queue-service:${{ steps.package-version.outputs.current-version}}'
- name: topic-viewer-latest
if: ${{ steps.latestTag.outputs.value == 'latest'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./topic-viewer/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/topic-viewer:${{ steps.package-version.outputs.current-version}}, gcr.io/hedera-registry/topic-viewer:latest'
- name: topic-viewer
if: ${{ steps.latestTag.outputs.value == 'hotfix'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./topic-viewer/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/topic-viewer:${{ steps.package-version.outputs.current-version}}'
- name: mrv-sender-latest
if: ${{ steps.latestTag.outputs.value == 'latest'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./mrv-sender/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/mrv-sender:${{ steps.package-version.outputs.current-version}}, gcr.io/hedera-registry/mrv-sender:latest'
- name: mrv-sender
if: ${{ steps.latestTag.outputs.value == 'hotfix'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./mrv-sender/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/mrv-sender:${{ steps.package-version.outputs.current-version}}'
- name: analytics-service-latest
if: ${{ steps.latestTag.outputs.value == 'latest'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./analytics-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/analytics-service:${{ steps.package-version.outputs.current-version}}, gcr.io/hedera-registry/analytics-service:latest'
- name: analytics-service
if: ${{ steps.latestTag.outputs.value == 'hotfix'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./analytics-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/analytics-service:${{ steps.package-version.outputs.current-version}}'
- name: web-proxy-latest
if: ${{ steps.latestTag.outputs.value == 'latest'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./web-proxy/Dockerfile.ci
push: true
tags: 'gcr.io/hedera-registry/frontend:${{ steps.package-version.outputs.current-version}}, gcr.io/hedera-registry/frontend:latest'
- name: web-proxy
if: ${{ steps.latestTag.outputs.value == 'hotfix'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./web-proxy/Dockerfile.ci
push: true
tags: 'gcr.io/hedera-registry/frontend:${{ steps.package-version.outputs.current-version}}'
- name: web-proxy-demo-latest
if: ${{ steps.latestTag.outputs.value == 'latest'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./web-proxy/Dockerfile.demo
push: true
tags: 'gcr.io/hedera-registry/frontend-demo:${{ steps.package-version.outputs.current-version}}, gcr.io/hedera-registry/frontend-demo:latest'
- name: web-proxy-demo
if: ${{ steps.latestTag.outputs.value == 'hotfix'}}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
context: .
file: ./web-proxy/Dockerfile.demo
push: true
tags: 'gcr.io/hedera-registry/frontend-demo:${{ steps.package-version.outputs.current-version}}'
- name: indexer-worker-service-latest
if: ${{ steps.latestTag.outputs.value == 'latest'}}
uses: docker/build-push-action@v2
with:
context: .
file: ./indexer-worker-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/indexer-worker-service:${{ steps.package-version.outputs.current-version}}, gcr.io/hedera-registry/indexer-worker-service:latest'
- name: indexer-worker-service
if: ${{ steps.latestTag.outputs.value == 'hotfix'}}
uses: docker/build-push-action@v2
with:
context: .
file: ./indexer-worker-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/indexer-worker-service:${{ steps.package-version.outputs.current-version}}'
- name: indexer-service-latest
if: ${{ steps.latestTag.outputs.value == 'latest'}}
uses: docker/build-push-action@v2
with:
context: .
file: ./indexer-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/indexer-service:${{ steps.package-version.outputs.current-version}}, gcr.io/hedera-registry/indexer-service:latest'
- name: indexer-service
if: ${{ steps.latestTag.outputs.value == 'hotfix'}}
uses: docker/build-push-action@v2
with:
context: .
file: ./indexer-service/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/indexer-service:${{ steps.package-version.outputs.current-version}}'
- name: indexer-api-gateway-latest
if: ${{ steps.latestTag.outputs.value == 'latest'}}
uses: docker/build-push-action@v2
with:
context: .
file: ./indexer-api-gateway/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/indexer-api-gateway:${{ steps.package-version.outputs.current-version}}, gcr.io/hedera-registry/indexer-api-gateway:latest'
- name: indexer-api-gateway
if: ${{ steps.latestTag.outputs.value == 'hotfix'}}
uses: docker/build-push-action@v2
with:
context: .
file: ./indexer-api-gateway/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/indexer-api-gateway:${{ steps.package-version.outputs.current-version}}'
- name: indexer-web-proxy-latest
if: ${{ steps.latestTag.outputs.value == 'latest'}}
uses: docker/build-push-action@v2
with:
context: .
file: ./indexer-web-proxy/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/indexer-web-proxy:${{ steps.package-version.outputs.current-version}}, gcr.io/hedera-registry/indexer-web-proxy:latest'
- name: indexer-web-proxy
if: ${{ steps.latestTag.outputs.value == 'hotfix'}}
uses: docker/build-push-action@v2
with:
context: .
file: ./indexer-web-proxy/Dockerfile
push: true
tags: 'gcr.io/hedera-registry/indexer-web-proxy:${{ steps.package-version.outputs.current-version}}'