Skip to content

Commit efae500

Browse files
committed
Added dependency installation and checking directory existence
1 parent 36742cf commit efae500

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/create-image.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: "initial-image-build-workflow"
2+
3+
on:
4+
# Trigger a specific workflow run on demand without need for a code push/pull request
5+
workflow_dispatch:
6+
inputs:
7+
githubRepo:
8+
description: "Link of public github repo to deploy"
9+
required: true
10+
11+
jobs:
12+
create_docker_image:
13+
permissions:
14+
contents: "read"
15+
id-token: "write"
16+
runs-on: ubuntu-latest
17+
defaults:
18+
run:
19+
shell: bash
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v3
23+
- name: Set up Python 3.8
24+
run: actions/setup-python@v2
25+
with:
26+
python-version: 3.8
27+
- name: Install Github dependents info
28+
run: pip install -U github-dependents-info
29+
- name: Check if directory exists
30+
- run: |
31+
year=&(echo $(date '+%Y'))
32+
if [ -d submissions${year} ]; then
33+
echo "Directory exists"
34+
else
35+
echo "Directory does not exist"
36+
fi
37+
38+
# need to add export DOCKER_BUILDKIT=1 before building python docker image

0 commit comments

Comments
 (0)