Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit ab93424

Browse files
Merge pull request #26 from IntelPython/feature/docker_update_tag_push
Update Docker hub with latest tags using Github Actions
2 parents 5593caf + dff42cd commit ab93424

File tree

6 files changed

+51
-17
lines changed

6 files changed

+51
-17
lines changed

configs/intelpython3_core/Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ MAINTAINER Robert Cohn <[email protected]>
3030

3131
ENV ACCEPT_INTEL_PYTHON_EULA=yes
3232

33-
RUN conda config --add channels intel\
34-
&& conda install -y -q intelpython3_core=2021.3 python=3 \
35-
&& conda clean --all \
36-
&& apt-get update -qqq \
37-
&& apt-get autoremove
33+
RUN conda config --add channels intel
34+
RUN conda install -y -q intelpython3_core=2021.3 python=3
35+
RUN conda clean --all

configs/intelpython3_core/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@ Tags:
3030
* 2017.0.3-0
3131
* 2017.0.2-0, 2017.0.2
3232
* 2017.0.1-1, 2017.0.1
33-
* 2017.0.0-2, 2017.0.0
33+
* 2017.0.0-2, 2017.0.0
34+
35+
LEGAL NOTICE: By accessing, downloading or using this software and any required dependent software (the "Software Package"), you agree to the terms and conditions of the software license agreements for the Software Package, which may also include notices, disclaimers, or license terms for third party software included with the Software Package. Please refer to the "third-party-programs.txt" or other similarly-named text file for additional details.

configs/intelpython3_full/Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ MAINTAINER Robert Cohn <[email protected]>
3030

3131
ENV ACCEPT_INTEL_PYTHON_EULA=yes
3232

33-
RUN conda config --add channels intel\
34-
&& conda install -y -q intelpython3_full=2021.3 python=3 \
35-
&& conda clean --all \
36-
&& apt-get update -qqq \
37-
&& apt-get autoremove
33+
RUN conda config --add channels intel
34+
RUN conda install -y -q intelpython3_full=2021.3 python=3
35+
RUN conda clean --all

configs/intelpython3_full/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@ Tags:
3030
* 2017.0.3-0
3131
* 2017.0.2-0, 2017.0.2
3232
* 2017.0.1-1, 2017.0.1
33-
* 2017.0.0-2, 2017.0.0
33+
* 2017.0.0-2, 2017.0.0
34+
35+
LEGAL NOTICE: By accessing, downloading or using this software and any required dependent software (the "Software Package"), you agree to the terms and conditions of the software license agreements for the Software Package, which may also include notices, disclaimers, or license terms for third party software included with the Software Package. Please refer to the "third-party-programs.txt" or other similarly-named text file for additional details.

publish.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish on Docker Hub
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
push_to_registry:
10+
name: Push Docker image to Docker Hub
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check out the repo
14+
uses: actions/checkout@v2
15+
16+
- name: Log in to Docker Hub
17+
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
18+
with:
19+
username: ${{ secrets.DOCKER_LOGIN_USERNAME }}
20+
password: ${{ secrets.DOCKER_LOGIN_PASSWORD }}
21+
22+
- name: Extract metadata (tags, labels) for Docker
23+
id: meta
24+
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
25+
with:
26+
images:
27+
- intelpython/intelpython3_core
28+
- intelpython/intelpython3_full
29+
30+
- name: Build and push Docker image
31+
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
32+
with:
33+
context: .
34+
push: true
35+
tags: ${{ steps.meta.outputs.tags }}
36+
labels: ${{ steps.meta.outputs.labels }}

tpls/tpl.Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ MAINTAINER Robert Cohn <[email protected]>
3030

3131
ENV ACCEPT_INTEL_PYTHON_EULA=yes
3232

33-
RUN conda config --add channels intel\
34-
&& conda install {{install_args}} -y -q intelpython{{pyver}}_{{package}}={{update_number}}{{build_number}} python={{pyver}} \
35-
&& conda clean --all \
36-
&& apt-get update -qqq \
37-
&& apt-get autoremove
33+
RUN conda config --add channels intel
34+
RUN conda install {{install_args}} -y -q intelpython{{pyver}}_{{package}}={{update_number}}{{build_number}} python={{pyver}}
35+
RUN conda clean --all
3836

0 commit comments

Comments
 (0)