Update package.json #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: core ui service docker Image CI | |
on: | |
push: | |
branches: [ "mf-build-docker" ] | |
pull_request: | |
branches: [ "mf-build" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build the Docker image | |
working-directory: ./micro-ui/web/packages/core | |
run: docker build . --file docker/Dockerfile --tag jaganegov/core-digit-ui:latest | |
- name: Login to Docker Hub and Push Docker Image | |
working-directory: ./micro-ui/web/packages/core | |
env: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
run: | | |
# Authenticate with Docker Hub | |
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin | |
# Push the image to Docker Hub | |
docker push jaganegov/mdms:latest | |