From 6f5020ea54cd0df9a96d132043992f612ffb09cd Mon Sep 17 00:00:00 2001 From: Marcin Procyk Date: Thu, 1 Dec 2022 17:50:41 +0100 Subject: [PATCH] chore: add GH workflow to publish manually from branches (#2316) --- .github/workflows/publish-from-branch.yml | 25 +++++++++++++++++++++++ .github/workflows/publish-release.yml | 1 - 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish-from-branch.yml diff --git a/.github/workflows/publish-from-branch.yml b/.github/workflows/publish-from-branch.yml new file mode 100644 index 0000000000..d67cdc421e --- /dev/null +++ b/.github/workflows/publish-from-branch.yml @@ -0,0 +1,25 @@ +name: Publish from branch + +on: + workflow_dispatch: + +jobs: + publish-from-branch: + name: Publish from branch + runs-on: ubuntu-latest + steps: + - name: Build and publish all images to Dockerhub + run: | + echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u ${{ secrets.DOCKER_USER }} --password-stdin + make docker-publish + + send-chat-notification: + name: Send google chat notification + needs: [publish-from-branch] + runs-on: ubuntu-latest + steps: + - name: Send notification to google chat room "DSP releases" + uses: lakto/google-chat-action@main + with: + url: ${{ secrets.GOOGLE_CHAT_DSP_RELEASES_WEBHOOK_URL }} + diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index d474404ca1..ca17b36cb6 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -3,7 +3,6 @@ name: Publish on: release: types: [published] - workflow_dispatch: jobs: create-client-test-data: