Skip to content

Create reusable workflow for building images #12

Create reusable workflow for building images

Create reusable workflow for building images #12

Workflow file for this run

# Build and publish container images
#
# There are three images in this repo we want to build and publish individually:
# - GISPy
# - ISIS
# - ASP
#
# The images should be tagged as 'latest' and "$VERSION", where the version
# will point unequivocally to a git commit/tag of this repo.
# 'latest' will be the latest version of repository in 'stable' branch.
#
# Reference docs:
# - docs.github.com/en/actions/publishing-packages/publishing-docker-images
name: Build and Publish Containers
# Controls when the action will run. Triggers the workflow on push request, or repository dispatch
on:
# Runs when pushing to 'stable' branch
push:
branches:
- 'stable'
- 'test'
tags:
- 'v*'
# Run in every PR too
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
gispy:
uses: ./.github/workflows/workflow_build.yml

Check failure on line 36 in .github/workflows/docker_build.yml

View workflow run for this annotation

GitHub Actions / Build and Publish Containers

Invalid workflow file

The workflow is not valid. .github/workflows/docker_build.yml (Line: 36, Col: 11): Input file_path is required, but not provided while calling. .github/workflows/docker_build.yml (Line: 40, Col: 24): Invalid input, dockerfile_path is not defined in the referenced workflow.
with:
image_name: ${{ vars.DOCKERHUB_USERNAME }}/jupyter-gispy
context_path: ./dockerfiles
dockerfile_path: ./dockerfiles/gispy.dockerfile
secrets: inherit