Skip to content

Commit

Permalink
Merge pull request #2860 from CounterpartyXCP/dockerimage
Browse files Browse the repository at this point in the history
Publish docker image on every push
  • Loading branch information
adamkrellenstein authored Dec 17, 2024
2 parents 4f6b5b1 + 64c5848 commit 0180b29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish_docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ on:
release:
types: [published]
push:
branches:
- develop
branches: "**"

env:
DOCKER_REPO: counterparty/counterparty
Expand All @@ -27,6 +26,8 @@ jobs:
export VERSION=v$(cat counterparty-core/counterpartycore/lib/config.py | grep '__version__ =' | awk -F '"' '{print $2}')
elif [[ ${{ github.event_name }} == 'push' && ${{ github.ref }} == 'refs/heads/develop' ]]; then
export VERSION=develop
else
export VERSION=${{ github.sha }}
fi
docker build -t $DOCKER_REPO:$VERSION .
docker tag $DOCKER_REPO:$VERSION $DOCKER_REPO:latest
Expand Down

0 comments on commit 0180b29

Please sign in to comment.