Skip to content

Enable publishing

Enable publishing #4

Workflow file for this run

name: Build and publish the Docker image
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
publish-to-docker-hub:
runs-on: ubuntu-latest
env:
ENVIRONMENT: prod
IMAGE_NAME: bluebrain/obp-accounting-service
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and publish the Docker image to DockerHub
run: make publish