Merge pull request #5 from Google-DSC-Kookmin/test_branch #3
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 Build and Push | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Login to Docker Hub | |
run: docker login -u ${{ secrets.DOCKER_ID }} -p ${{ secrets.DOCKERHUB_ACCESSTOKEN }} | |
- name: Build Docker image | |
run: docker build -t crawlapp:latest . | |
- name: Push Docker image | |
run: docker push crawlapp:latest |