Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add GH workflow to publish manually from branches #2316

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
25 changes: 25 additions & 0 deletions .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 }}

1 change: 0 additions & 1 deletion .github/workflows/publish-release.yml
Expand Up @@ -3,7 +3,6 @@ name: Publish
on:
release:
types: [published]
workflow_dispatch:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious: what is the reason to remove this? Don't you think it might be useful to keep it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added it on the previous attempt thinking we can use this workflow to release on demand manually, but apparently it didn't work, so I remove it.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, thanks for the clarification


jobs:
create-client-test-data:
Expand Down