Updated the docker compose to include redis #40
Workflow file for this run
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: Cava Metadata PR Build | |
on: | |
pull_request: | |
paths-ignore: | |
- README.md | |
- "resources/helm/**" | |
- "**/test-chart.yml" | |
- ".ci-helpers/**" | |
env: | |
DOCKER_ORG: cormorack | |
IMAGE_NAME: cava-metadata | |
CONDA_VERSION: 4.9.2 | |
PYTHON_VERSION: 3.7 | |
jobs: | |
# TODO: Need python tests build with fastapi ... | |
docker-build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set Job Environment Variables | |
run: | | |
DOCKER_TAG=PR | |
IMAGE_SPEC="${DOCKER_ORG}/${{ env.IMAGE_NAME }}:${DOCKER_TAG}" | |
echo "IMAGE_SPEC=${IMAGE_SPEC}" >> $GITHUB_ENV | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Build Docker Image | |
id: docker_build | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
file: ./resources/docker/Dockerfile | |
push: false | |
build-args: | | |
CONDA_VERSION=${{ env.CONDA_VERSION }} | |
PYTHON_VERSION=${{ env.PYTHON_VERSION }} | |
tags: | | |
${{ env.IMAGE_SPEC }} |