Skip to content

BAH 1277 | Adding odoo_startup.sh (#73) #29

BAH 1277 | Adding odoo_startup.sh (#73)

BAH 1277 | Adding odoo_startup.sh (#73) #29

name: Build and Publish Odoo
on:
push:
branches:
- master
- 'release-*'
tags:
- '[0-9]+.[0-9]+.[0-9]+'
paths-ignore:
- "**.md"
- ".github/workflows/build_publish_odoo_freshDB.yml"
- ".github/workflows/build_publish_odoo_demoDB.yml"
- "package/docker/demoDB/**"
- "package/docker/freshDB/**"
- "package/resources/database/**"
jobs:
docker-build-publish:
name: Docker Build & Publish Odoo
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set env.ARTIFACT_VERSION
run: |
wget -q https://raw.githubusercontent.com/Bahmni/bahmni-infra-utils/main/setArtifactVersion.sh && chmod +x setArtifactVersion.sh
./setArtifactVersion.sh
rm setArtifactVersion.sh
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Docker Build and push
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64
file: package/docker/odoo/Dockerfile
push: true
tags: bahmni/odoo-10:${{env.ARTIFACT_VERSION}},bahmni/odoo-10:latest