Merge pull request #149 from kuettai/main #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: Build Docker Image for Screener Scheduler | |
on: | |
push: | |
branches: | |
- ugym-automation | |
- main | |
jobs: | |
build: | |
name: push docker image to docker hub | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: login to docker hub | |
id: docker-hub | |
env: | |
username: ${{secrets.DOCKER_USERNAME}} | |
password: ${{secrets.DOCKER_PASSWORD}} | |
run: | | |
docker login -u $username -p $password | |
- name: build the docker image | |
id: build-docker-image | |
run: | | |
ls -la | |
docker build ./usecases/scheduler/docker -t yingtingaws/screener-scheduler:latest | |
- name: push the docker image | |
id: push-docker-image | |
run: docker push ${{secrets.DOCKER_USERNAME}}/screener-scheduler:latest |