-
Notifications
You must be signed in to change notification settings - Fork 5
70 lines (68 loc) · 2.53 KB
/
docker-publish.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
70
name: ci
on:
push:
branches: [ dotnet7 ]
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Prepare
id: prep
run: |
echo ::set-output name=datetag::$(date -u +'%Y%m%d')
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push minimal-dotnet
id: docker_build_minimal
uses: docker/build-push-action@v2
with:
push: true
build-args: base_image=jupyter/minimal-notebook
tags: pocki/minimal-dotnet:latest, pocki/minimal-dotnet:${{ steps.prep.outputs.datetag }}
labels: |
org.opencontainers.image.source=${{ github.event.repository.html_url }}
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}
-
name: Image digest minimal-dotnet
run: echo ${{ steps.docker_build_minimal.outputs.digest }}
-
name: Build and push scipy-dotnet
id: docker_build_scipy
uses: docker/build-push-action@v2
with:
push: true
build-args: base_image=jupyter/scipy-notebook
tags: pocki/scipy-dotnet:latest, pocki/scipy-dotnet:${{ steps.prep.outputs.datetag }}
labels: |
org.opencontainers.image.source=${{ github.event.repository.html_url }}
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}
-
name: Image digest scipy-dotnet
run: echo ${{ steps.docker_build_scipy.outputs.digest }}
-
name: Build and push r-dotnet
id: docker_build_r
uses: docker/build-push-action@v2
with:
push: true
build-args: base_image=jupyter/r-notebook
tags: pocki/r-dotnet:latest, pocki/r-dotnet:${{ steps.prep.outputs.datetag }}
labels: |
org.opencontainers.image.source=${{ github.event.repository.html_url }}
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}
-
name: Image digest r-dotnet
run: echo ${{ steps.docker_build_r.outputs.digest }}