update github workflow #28
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 | |
on: | |
push: | |
branches: [ wordsapi ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Buildimg and pumsh image to Docker HuB! | |
env: | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
DOCKER_ID: ${{ secrets.DOCKER_ID }} | |
run: | | |
docker build . --file Dockerfile --tag $DOCKER_ID/oxford-dict-bot:wordsapi-redis | |
echo $DOCKER_PASSWORD | docker login -u $DOCKER_ID --password-stdin | |
docker push $DOCKER_ID/oxford-dict-bot:wordsapi-redis |