Merge branch 'main' of https://github.com/msosav/CCS-File-System #1
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: Docker Image CI NameNode | |
on: | |
push: | |
branches: | |
- "main" | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Copy Project Code | |
uses: actions/checkout@v3 | |
- name: Docker login | |
env: | |
DOCKER_USER: ${{secrets.DOCKERHUB_USER}} | |
DOCKER_PASS: ${{secrets.DOCKERHUB_PASS}} | |
run: | | |
docker login -u $DOCKER_USER -p $DOCKER_PASS | |
- name: Build the Docker Image | |
run: | | |
cd NameNode | |
docker build . --tag msosav/ccs-file-system-namenode:latest | |
- name: Docker Push | |
run: docker push msosav/ccs-file-system-namenode |