v1.0.1 #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image CI | |
on: | |
release: | |
types: [published] | |
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-latest | |
opennyaiin/jugalbandi-manager:flow-${{ github.ref_name }} | |
- 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-latest | |
opennyaiin/jugalbandi-manager:language-${{ github.ref_name }} | |
- 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-latest | |
opennyaiin/jugalbandi-manager:channel-${{ github.ref_name }} | |
- 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-latest | |
opennyaiin/jugalbandi-manager:api-${{ github.ref_name }} | |
- 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-latest | |
opennyaiin/jugalbandi-manager:retriever-${{ github.ref_name }} | |
- 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-latest | |
opennyaiin/jugalbandi-manager:frontend-${{ github.ref_name }} | |