Skip to content

[FIX] Docker publish error #364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
branches:
- master
- development
- fixes_docker
- fix-docker
workflow_dispatch:

jobs:
Expand All @@ -24,7 +24,9 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v2

with:
submodules: recursive

- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
Expand All @@ -49,7 +51,7 @@ jobs:
with:
images: |
automlorg/autopytorch
ghcr.io/${{ github.repository }}
ghcr.io/automl/auto-pytorch

- name: Build and push Docker images
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
Expand All @@ -64,12 +66,12 @@ jobs:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Pull Docker image
run: docker pull ghcr.io/$GITHUB_REPOSITORY/autoPyTorch:$BRANCH
run: docker pull ghcr.io/automl/auto-pytorch/autopytorch:$BRANCH
env:
BRANCH: ${{ steps.extract_branch.outputs.branch }}

- name: Run image
run: docker run -i -d --name unittester -v $GITHUB_WORKSPACE:/workspace -w /workspace ghcr.io/$GITHUB_REPOSITORY/autoPyTorch:$BRANCH
run: docker run -i -d --name unittester -v $GITHUB_WORKSPACE:/workspace -w /workspace ghcr.io/automl/auto-pytorch/autopytorch:$BRANCH
env:
BRANCH: ${{ steps.extract_branch.outputs.branch }}

Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ WORKDIR /auto-pytorch

# install linux packages
RUN apt-get update
# Install missing opencv dependencies
RUN apt-get install ffmpeg libsm6 libxext6 -y

# Set the locale
# workaround for https://github.com/automl/auto-sklearn/issues/867
Expand Down