Skip to content

Commit 5504230

Browse files
mfeurerPGijsbers
authored andcommitted
Update docker actions (openml#1211)
* Update docker actions * Fix context * Specify tag for docker container to use strict python version (3.10) * Load OpenML in Docker file * load correct image * load correct image * Remove loading python again
1 parent b959529 commit 5504230

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

.github/workflows/release_docker.yaml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,46 @@ name: release-docker
33
on:
44
push:
55
branches:
6+
- 'main'
67
- 'develop'
78
- 'docker'
89

910
jobs:
11+
1012
docker:
13+
1114
runs-on: ubuntu-latest
15+
1216
steps:
1317
- name: Set up QEMU
14-
uses: docker/setup-qemu-action@v1
18+
uses: docker/setup-qemu-action@v2
19+
1520
- name: Set up Docker Buildx
1621
uses: docker/setup-buildx-action@v1
22+
1723
- name: Login to DockerHub
18-
uses: docker/login-action@v1
24+
uses: docker/login-action@v2
1925
with:
2026
username: ${{ secrets.DOCKERHUB_USERNAME }}
2127
password: ${{ secrets.DOCKERHUB_TOKEN }}
22-
- uses: actions/checkout@v3
28+
29+
- name: Check out the repo
30+
uses: actions/checkout@v3
31+
32+
- name: Extract metadata (tags, labels) for Docker Hub
33+
id: meta_dockerhub
34+
uses: docker/metadata-action@v4
35+
with:
36+
images: "openml/openml-python"
37+
2338
- name: Build and push
2439
id: docker_build
25-
uses: docker/build-push-action@v2
40+
uses: docker/build-push-action@v4
2641
with:
2742
context: ./docker/
2843
push: true
29-
tags: openml/openml-python:latest
44+
tags: ${{ steps.meta_dockerhub.outputs.tags }}
45+
labels: ${{ steps.meta_dockerhub.outputs.labels }}
46+
3047
- name: Image digest
3148
run: echo ${{ steps.docker_build.outputs.digest }}

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Dockerfile to build an image with preinstalled dependencies
22
# Useful building docs or running unix tests from a Windows host.
3-
FROM python:3
3+
FROM python:3.10
44

55
RUN git clone https://github.com/openml/openml-python.git omlp
66
WORKDIR omlp

0 commit comments

Comments
 (0)