Skip to content

Added Pypi workflow and updated JB-Manager-Bot #1

Added Pypi workflow and updated JB-Manager-Bot

Added Pypi workflow and updated JB-Manager-Bot #1

name: Docker Image CI
on:
pull_request:
types:
- closed
branches:
- main
jobs:
build:
if: github.event.pull_request.merged == true
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
fetch-depth: '0'
- name: Bump version and push tag
id: tag_version
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # if you don't want to set write permissions use a PAT token
WITH_V: false
DEFAULT_BUMP: patch
RELEASE_BRANCHES: main
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker flow image
uses: docker/build-push-action@v5
with:
context: .
file: flow/Dockerfile
push: true
tags: opennyaiin/jugalbandi-manager:flow-${{ steps.tag_version.outputs.new_tag }}
- name: Build and push Docker language image
uses: docker/build-push-action@v5
with:
context: .
file: language/Dockerfile
push: true
tags: opennyaiin/jugalbandi-manager:language-${{ steps.tag_version.outputs.new_tag }}
- name: Build and push Docker channel image
uses: docker/build-push-action@v5
with:
context: .
file: channel/Dockerfile
push: true
tags: opennyaiin/jugalbandi-manager:channel-${{ steps.tag_version.outputs.new_tag }}
- name: Build and push Docker api image
uses: docker/build-push-action@v5
with:
context: .
file: api/Dockerfile
push: true
tags: opennyaiin/jugalbandi-manager:api-${{ steps.tag_version.outputs.new_tag }}
- name: Build and push Docker retriever image
uses: docker/build-push-action@v5
with:
context: .
file: retriever/Dockerfile
push: true
tags: opennyaiin/jugalbandi-manager:retriever-${{ steps.tag_version.outputs.new_tag }}
- name: Build and push Docker frontend image
uses: docker/build-push-action@v5
with:
context: .
file: frontend/Dockerfile
push: true
tags: opennyaiin/jugalbandi-manager:frontend-${{ steps.tag_version.outputs.new_tag }}