refactor: 🎨 modified folder structure #2
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: Publish Docker Image CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Login to docker-hub | |
run: docker login --username=${{ secrets.DOCKER_USERNAME }} --password=${{ secrets.DOCKER_PASSWORD }} | |
- name: Build the Docker image | |
run: docker build -t a7medayman6/e-voting-consumer-service:latest ./consumer-service; | |
- name: Push to registry | |
run: docker push a7medayman6/e-voting-consumer-service:latest |