-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1 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
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