Skip to content

fix: add missing fi statement and rename published image (#64) #7

fix: add missing fi statement and rename published image (#64)

fix: add missing fi statement and rename published image (#64) #7

Workflow file for this run

name: Build and Push Subgraph Deployer Docker Image
on:
push:
tags:
- '*' # Trigger on tag push
workflow_dispatch:
jobs:
# Need to compute the tag based on the event type
compute-tag:
runs-on: ubuntu-latest
outputs:
computed_tag: ${{ steps.set_tag.outputs.computed_tag }}
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Set image tag
id: set_tag
run: |
set -e
if [ "${GITHUB_EVENT_NAME}" = "workflow_dispatch" ]; then
latest_tag=$(git describe --tags --abbrev=0)
echo "computed_tag=${latest_tag}+dev+${GITHUB_SHA}" >> $GITHUB_OUTPUT
else
echo "computed_tag=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
fi
build:
needs: compute-tag
uses: ./.github/workflows/reusable-subgraph-deployer-docker.yml
with:
tag: ${{ needs.compute-tag.outputs.computed_tag }}
secrets:
docker-username: ${{ secrets.DOCKERHUB_USERNAME }}
docker-password: ${{ secrets.DOCKERHUB_PAT }}