-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.01 KB
/
create-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: "initial-image-build-workflow"
on:
# Trigger a specific workflow run on demand without need for a code push/pull
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
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Github dependents info
run: 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