From 64c584858571de763e27e2e59c2b84e486213c32 Mon Sep 17 00:00:00 2001 From: Ouziel Slama Date: Tue, 17 Dec 2024 17:58:15 +0000 Subject: [PATCH] publish image on every push --- .github/workflows/publish_docker_image.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_docker_image.yml b/.github/workflows/publish_docker_image.yml index 280144a6b1..014c35c9ea 100644 --- a/.github/workflows/publish_docker_image.yml +++ b/.github/workflows/publish_docker_image.yml @@ -4,8 +4,7 @@ on: release: types: [published] push: - branches: - - develop + branches: "**" env: DOCKER_REPO: counterparty/counterparty @@ -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