Manual build and deploy Learning Loop to DockerHub #1
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: Manual build and deploy Learning Loop to DockerHub | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: learning-loop-ubuntu | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
config: | |
- { image_name: learning-loop, dockerfile: ubuntu-build.dockerfile, context: ./learning-loop/ } | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Login, build and push image | |
if: success() | |
uses: whoan/docker-build-with-cache-action@v4 | |
with: | |
username: "${{ secrets.DOCKER_USERNAME }}" | |
password: "${{ secrets.DOCKER_PASSWORD }}" | |
image_name: "vowpalwabbit/${{matrix.config.image_name}}" | |
dockerfile: "${{matrix.config.dockerfile}}" | |
context: "${{ matrix.config.context }}" | |
push_image_and_stages: true |