-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (68 loc) · 2.51 KB
/
upload-docker-submission.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Upload Docker Software to TIRA
on:
workflow_dispatch:
inputs:
dockerpath:
description: The path to the directory of your submission. Should contain a Dockerfile that executes your code.
required: true
dataset:
type: choice
description: Dataset
options:
- authorship-verification-validation-20240408-training
- language-identification-validation-20240429-training
- paraphrase-identification-validation-20240515-training
- summarization-validation-20240530-training
jobs:
docker-build:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: registry.webis.de
username: ${{ secrets.TIRA_DOCKER_REGISTRY_USER }}
password: ${{ secrets.TIRA_DOCKER_REGISTRY_TOKEN }}
-
name: Set up Dependencies
uses: actions/setup-python@v4
with:
python-version: 3.8
-
name: Install required python packages
run: |
python -m pip install --upgrade pip
pip install tira requests==2.31.0
-
name: Set environment variables
env:
TIRA_TASK_ID: nlpbuw-fsu-sose-24
TIRA_VM_ID: group-one-two
run: |
tira-run --export-submission-environment \
GITHUB_SHA=${{ github.sha }} \
TIRA_VM_ID=${{ env.TIRA_VM_ID }} \
TIRA_TASK_ID=${{ env.TIRA_TASK_ID }} \
TIRA_DOCKER_REGISTRY_TOKEN=${{ secrets.TIRA_DOCKER_REGISTRY_TOKEN }} \
TIRA_DOCKER_REGISTRY_USER=${{ secrets.TIRA_DOCKER_REGISTRY_USER }} \
TIRA_CLIENT_TOKEN=${{ secrets.TIRA_CLIENT_TOKEN }} \
TIRA_CLIENT_USER=${{ secrets.TIRA_CLIENT_USER }} \
TIRA_CODE_REPOSITORY_ID=${{ secrets.TIRA_CODE_REPOSITORY_ID }} \
TIRA_DOCKER_FILE=${{ inputs.dockerfile }}/Dockerfile \
TIRA_DOCKER_PATH=${{ inputs.dockerpath }} \
>> $GITHUB_ENV
- name: Build, test, and upload image
run: |
docker build -t ${{ env.IMAGE_TAG }} ${{ github.workspace }}/${{ inputs.dockerpath }}
tira-run --input-dataset nlpbuw-fsu-sose-24/${{ inputs.dataset }} --image ${{ env.IMAGE_TAG }} --push true --fail-if-output-is-empty