Skip to content

Commit

Permalink
Update GH Action
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinRay97 committed Nov 12, 2024
1 parent 8925a91 commit d2de46a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build-connectors-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ jobs:
run: |
# Get the database type from the matrix
DB_TYPE=${{ matrix.database }}
# Extract only the version part from the branch name, omitting the database type
VERSION=${GITHUB_REF#refs/heads/${DB_TYPE}/}
# Set the tag output as "v1.0.3" and the full Docker tag as "ghcr.io/hasura/ndc-jvm-mysql:v1.0.3"
echo "tag=${VERSION}" >> $GITHUB_OUTPUT
# Use sed to remove the database prefix and get only the version part
VERSION=$(echo "${GITHUB_REF#refs/heads/}" | sed "s|^${DB_TYPE}/||")
# Construct the Docker tag
echo "docker_tag=ghcr.io/hasura/ndc-jvm-${DB_TYPE}:${VERSION}" >> $GITHUB_OUTPUT
- name: Set up Docker Buildx
Expand Down

0 comments on commit d2de46a

Please sign in to comment.