Skip to content

Build and publish User service to Docker Hub #2

Build and publish User service to Docker Hub

Build and publish User service to Docker Hub #2

Workflow file for this run

name: Build and publish User service to Docker Hub
on:
push:
branches: ['main']
paths:
- "user/**"
workflow_dispatch:
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: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: ./user/
push: true
tags: nabeelncz/zakaa-user:latest