-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (39 loc) · 1.26 KB
/
docker-icl-jupyterhub-triton.yaml
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
name: Docker icl-jupyterhub-triton image
on:
workflow_dispatch:
inputs:
tag:
type: string
description: Image tag
required: true
default: 0.0.33
push:
description: Push image to DockerHub
required: true
type: choice
options:
- false
- true
default: false
env:
DOCKER_BUILD_ARGS: --build-arg http_proxy --build-arg https_proxy
jobs:
build:
runs-on: [glados, docker]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Docker info
run: docker info
- name: Build image pbchekin/icl-jupyterhub-triton:${{ inputs.tag }}
run: |
cd docker/icl-jupyterhub-triton
docker build . \
$DOCKER_BUILD_ARGS \
--tag pbchekin/icl-jupyterhub-triton:${{ inputs.tag }} \
- name: Login to Docker Hub
if: inputs.push == 'true'
run: docker login --username "${{ vars.DOCKERHUB_USERNAME }}" --password "${{ secrets.DOCKERHUB_PASSWORD }}"
- name: Push image pbchekin/icl-jupyterhub-triton:${{ inputs.tag }}
if: inputs.push == 'true'
run: docker push pbchekin/icl-jupyterhub-triton:${{ inputs.tag }}