Dockerfile Push #742
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: Dockerfile Push | |
on: | |
schedule: | |
# runs everyday at 23:00 UTC | |
- cron: '0 23 * * *' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout 🛎 Ivy | |
uses: actions/checkout@v3 | |
- | |
name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push Dockerfile | |
run: | | |
docker build . --file docker/Dockerfile --tag transpileai/ivy:latest | |
docker push transpileai/ivy:latest |