Skip to content

Merge pull request #16 from Comm-com/development #17

Merge pull request #16 from Comm-com/development

Merge pull request #16 from Comm-com/development #17

name: Docker Build and Push PingProphet Service
on:
push:
branches: [ development, production ]
paths:
- 'services/ping_prophet/**'
jobs:
build:
runs-on: [ 'tools', 'builder' ]
steps:
- uses: actions/checkout@v4
- name: Checkout private action
uses: actions/checkout@v4
with:
repository: 'msgr2/workflows'
ref: 'main'
path: workflows
token: ${{ secrets.WRITE_ACCESS_TOKEN }}
- uses: ./workflows/docker-build
with:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
image_name: ${{ github.ref_name == 'production' && 'slnww/ping_prophet_service:latest' || 'slnww/ping_prophet_service_dev:latest' }}
dockerfile: ./services/ping_prophet/docker/Dockerfile
context: ./services/ping_prophet
update_production: ${{ github.ref_name == 'production' }}
update_staging: ${{ github.ref_name == 'development' }}