Merge pull request #15 from benyaming/aoigram3 #38
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: Israel bus bot CI | |
on: | |
push: | |
branches: | |
- master | |
# pull_request: | |
# branches: | |
# - master | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Docker login | |
run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build | |
run: docker build -t bus-bot . | |
- name: Tags | |
run: | | |
docker tag bus-bot ${{ secrets.DOCKER_USER }}/bus-bot:${{ github.sha }} | |
docker tag bus-bot ${{ secrets.DOCKER_USER }}/bus-bot:latest | |
- name: Push | |
run: | | |
docker push ${{ secrets.DOCKER_USER }}/bus-bot:${{ github.sha }} | |
docker push ${{ secrets.DOCKER_USER }}/bus-bot:latest |