Skip to content

Added dependency installation and checking directory existence #6

Added dependency installation and checking directory existence

Added dependency installation and checking directory existence #6

Workflow file for this run

name: "initial-image-build-workflow"
on:
# Trigger a specific workflow run on demand without need for a code push/pull request
workflow_dispatch:
inputs:
githubRepo:
description: "Link of public github repo to deploy"
required: true
jobs:
create_docker_image:
permissions:
contents: "read"
id-token: "write"
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Github dependents info
uses: pip install -U github-dependents-info
- name: Check if directory exists
- run: |
year=&(echo $(date '+%Y'))
if [ -d submissions${year} ]; then
echo "Directory exists"
else
echo "Directory does not exist"
fi
# need to add export DOCKER_BUILDKIT=1 before building python docker image