Skip to content

Build and push Docker image to DockerHub #2

Build and push Docker image to DockerHub

Build and push Docker image to DockerHub #2

Workflow file for this run

name: Build and push Docker image to DockerHub
on:
push:
branches: [ "main" ]
workflow_dispatch: # allows manual trigger
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DBP_DOCKERHUB_CREDENTIAL_USERNAME }}
password: ${{ secrets.DBP_DOCKERHUB_CREDENTIAL_TOKEN_PUSHIMAGES }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: dbpedia/python-databus-client:latest