Skip to content

Commit

Permalink
Update docker_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
FletcherMan authored Dec 30, 2024
1 parent 90df1cc commit 445df74
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/docker_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ name: Push Docker Image
on:
push:
tags:
- test-v*
branches:
- main
- release/*
- morph-v*

env:
IMAGE_NAME: go-ethereum
Expand Down Expand Up @@ -35,7 +32,7 @@ jobs:
# Strip git ref prefix from version
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
# Strip "morph-v" prefix from tag name
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^test-v//')
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^morph-v//')
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
Expand Down

0 comments on commit 445df74

Please sign in to comment.